From aaed0b9a1a81a3e2914d4ef89a7f932eaa55c2b2 Mon Sep 17 00:00:00 2001 From: Malcolm Smith Date: Tue, 18 May 2021 18:50:58 +0000 Subject: [PATCH] Add package: pyworld (build works on all ABIs, but untested) --- server/pypi/packages/pyworld/meta.yaml | 7 ++++++ .../packages/pyworld/patches/chaquopy.patch | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 server/pypi/packages/pyworld/meta.yaml create mode 100644 server/pypi/packages/pyworld/patches/chaquopy.patch diff --git a/server/pypi/packages/pyworld/meta.yaml b/server/pypi/packages/pyworld/meta.yaml new file mode 100644 index 0000000000..b28eb08ab8 --- /dev/null +++ b/server/pypi/packages/pyworld/meta.yaml @@ -0,0 +1,7 @@ +package: + name: pyworld + version: 0.2.12 + +requirements: + host: + - numpy 1.17.4 \ No newline at end of file diff --git a/server/pypi/packages/pyworld/patches/chaquopy.patch b/server/pypi/packages/pyworld/patches/chaquopy.patch new file mode 100644 index 0000000000..04c6fdccd5 --- /dev/null +++ b/server/pypi/packages/pyworld/patches/chaquopy.patch @@ -0,0 +1,22 @@ +--- src-original/setup.py 2020-10-19 06:31:08.000000000 +0000 ++++ src/setup.py 2021-05-05 08:57:57.395348080 +0000 +@@ -26,7 +26,7 @@ + def finalize_options(self): + _build_ext.finalize_options(self) + # Prevent numpy from thinking it is still in its setup process: +- __builtins__.__NUMPY_SETUP__ = False ++ __builtins__.__NUMPY_SETUP__ = True # Chaquopy: was False + import numpy + self.include_dirs.append(numpy.get_include()) + +@@ -48,9 +48,7 @@ + cmdclass={'build_ext': build_ext}, + version=_VERSION, + packages=find_packages(), +- setup_requires=[ +- 'numpy', +- ], ++ # Chaquopy: removed setup_requires=['numpy'] + install_requires=[ + 'numpy', + 'cython>=0.24.0',