Skip to content

Commit

Permalink
Skip cp11 for manywheel
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Dec 12, 2022
1 parent 3ecb77b commit 819d68b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
build-requirements: "cython numpy"
pip-wheel-args: "-w ./dist --no-deps"
python-versions: "cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311"
python-versions: "cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310"
- name: "Remove non-compatible packages"
run: "sudo rm dist/*linux_x86_64.whl\n"
- uses: actions/upload-artifact@v3
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# ---------------------------------------------------------------------------------------------------------



__name__ = "pymoo"
__author__ = "Julian Blank"
__url__ = "https://pymoo.org"
Expand All @@ -33,7 +32,7 @@
packages=find_packages(include=['pymoo', 'pymoo.*']),
include_package_data=True,
exclude_package_data={
'': ['*.c', '*.cpp', '*.pyx'],
'': ['*.c', '*.cpp', '*.pyx'],
},
install_requires=['numpy>=1.15',
'scipy>=1.1',
Expand All @@ -55,12 +54,14 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Mathematics'
]
)


# ---------------------------------------------------------------------------------------------------------
# OTHER METADATA
# ---------------------------------------------------------------------------------------------------------
Expand All @@ -75,14 +76,14 @@ def readme():
data['long_description'] = readme()
data['long_description_content_type'] = 'text/x-rst'


# ---------------------------------------------------------------------------------------------------------
# OPTIONS
# ---------------------------------------------------------------------------------------------------------


parser = argparse.ArgumentParser()
parser.add_argument('--nopyx', dest='nopyx', action='store_true', help='Whether the pyx files shall be considered at all.')
parser.add_argument('--nopyx', dest='nopyx', action='store_true',
help='Whether the pyx files shall be considered at all.')
parser.add_argument('--nocython', dest='nocython', action='store_true', help='Whether pyx files shall be cythonized.')
parser.add_argument('--nolibs', dest='nolibs', action='store_true', help='Whether the libraries should be compiled.')
args, _ = parser.parse_known_args()
Expand Down Expand Up @@ -158,6 +159,7 @@ def build_extension(self, ext):
ext = [Extension(f"pymoo.cython.{source[:-4]}", [source]) for source in pyx]
else:
from Cython.Build import cythonize

ext = cythonize("pymoo/cython/*.pyx")

if not args.nolibs:
Expand Down

0 comments on commit 819d68b

Please sign in to comment.