+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:
James Reynolds 2023-06-11 13:18:10 -06:00 committed by GitHub
parent 314a5a3e6a
commit 7a64a5cba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 0 deletions

View 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"

View file

@ -0,0 +1 @@
print 'You are using tea'

View file

@ -0,0 +1,6 @@
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("package_manager.pyx")
)