mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
projects/cython.org/libcython/package.yml
projects/cython.org/libcython/package_manager.pyx projects/cython.org/libcython/setup.py
This commit is contained in:
parent
5b3df25117
commit
f5aec2de42
3 changed files with 29 additions and 0 deletions
22
projects/cython.org/libcython/package.yml
Normal file
22
projects/cython.org/libcython/package.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
distributable:
|
||||
url: https://github.com/cython/cython/archive/{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: cython/cython
|
||||
dependencies:
|
||||
python.org: ^3.11
|
||||
tea.xyz/gx/cc: c99
|
||||
runtime:
|
||||
env:
|
||||
PYTHONPATH: "{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages"
|
||||
build:
|
||||
script:
|
||||
- python -m pip install --prefix={{prefix}}/libexec .
|
||||
- run: |
|
||||
ln -s ../libexec/lib/python{{deps.python.org.version.marketing}} python{{deps.python.org.version.marketing}}
|
||||
ln -s ../libexec/lib/python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||
working-directory: "{{prefix}}/lib"
|
||||
test:
|
||||
script:
|
||||
- python setup.py build_ext --inplace
|
||||
- python -c "import package_manager" | grep "You are using tea"
|
1
projects/cython.org/libcython/package_manager.pyx
Normal file
1
projects/cython.org/libcython/package_manager.pyx
Normal file
|
@ -0,0 +1 @@
|
|||
print 'You are using tea'
|
6
projects/cython.org/libcython/setup.py
Normal file
6
projects/cython.org/libcython/setup.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from distutils.core import setup
|
||||
from Cython.Build import cythonize
|
||||
|
||||
setup(
|
||||
ext_modules = cythonize("package_manager.pyx")
|
||||
)
|
Loading…
Reference in a new issue