From f5aec2de42b3bf9391322410408be820bf389cab Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Fri, 22 Sep 2023 16:08:01 +0300 Subject: [PATCH] projects/cython.org/libcython/package.yml projects/cython.org/libcython/package_manager.pyx projects/cython.org/libcython/setup.py --- projects/cython.org/libcython/package.yml | 22 +++++++++++++++++++ .../cython.org/libcython/package_manager.pyx | 1 + projects/cython.org/libcython/setup.py | 6 +++++ 3 files changed, 29 insertions(+) create mode 100644 projects/cython.org/libcython/package.yml create mode 100644 projects/cython.org/libcython/package_manager.pyx create mode 100644 projects/cython.org/libcython/setup.py diff --git a/projects/cython.org/libcython/package.yml b/projects/cython.org/libcython/package.yml new file mode 100644 index 00000000..1b7dacd8 --- /dev/null +++ b/projects/cython.org/libcython/package.yml @@ -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" \ No newline at end of file diff --git a/projects/cython.org/libcython/package_manager.pyx b/projects/cython.org/libcython/package_manager.pyx new file mode 100644 index 00000000..7a0898b8 --- /dev/null +++ b/projects/cython.org/libcython/package_manager.pyx @@ -0,0 +1 @@ +print 'You are using tea' diff --git a/projects/cython.org/libcython/setup.py b/projects/cython.org/libcython/setup.py new file mode 100644 index 00000000..a7018ae7 --- /dev/null +++ b/projects/cython.org/libcython/setup.py @@ -0,0 +1,6 @@ +from distutils.core import setup +from Cython.Build import cythonize + +setup( + ext_modules = cythonize("package_manager.pyx") +)