mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+cython.org (#2148)
* +cython.org * Remove useless ls cmd * removed dependency on self--oops * include compiler, remove non-present bins * requires c compiler at runtime --------- Co-authored-by: James Reynolds <magnsuviri@me.com> Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
314a5a3e6a
commit
7a64a5cba6
26
projects/cython.org/package.yml
Normal file
26
projects/cython.org/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
distributable:
|
||||
url: https://github.com/cython/cython/archive/refs/tags/{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: cython/cython/releases
|
||||
|
||||
provides:
|
||||
- bin/cython
|
||||
|
||||
dependencies:
|
||||
python.org: '*'
|
||||
tea.xyz/gx/cc: c99
|
||||
|
||||
build:
|
||||
script: |
|
||||
python-venv.py {{prefix}}/bin/cython
|
||||
dependencies:
|
||||
pip.pypa.io: '*'
|
||||
|
||||
test:
|
||||
script: |
|
||||
python setup.py build_ext --inplace
|
||||
test "$(python -c 'import package_manager')" = "You are using tea"
|
||||
env:
|
||||
PYTHONPATH: "{{prefix}}/venv/lib/python3.11/site-packages"
|
1
projects/cython.org/package_manager.pyx
Normal file
1
projects/cython.org/package_manager.pyx
Normal file
|
@ -0,0 +1 @@
|
|||
print 'You are using tea'
|
6
projects/cython.org/setup.py
Normal file
6
projects/cython.org/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