Skip to content

Commit

Permalink
Merge pull request #101 from yannikschaelte/master
Browse files Browse the repository at this point in the history
Install setup requirements on-the-fly
  • Loading branch information
moorepants authored Mar 11, 2021
2 parents 5b5e11d + 1606bf3 commit b7fb1c9
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

from setuptools import setup
from setuptools.extension import Extension

# install requirements before import
from setuptools import dist
SETUP_REQUIRES = [
"cython >= 0.26",
"numpy >= 1.15",
]
dist.Distribution().fetch_build_eggs(SETUP_REQUIRES)

from Cython.Distutils import build_ext
import numpy as np

Expand All @@ -41,12 +50,13 @@
AUTHOR = "Matthias Kümmerer"
EMAIL = "[email protected]"
URL = "https://github.com/matthias-k/cyipopt"
DEPENDENCIES = ["numpy>=1.15",
"cython>=0.26",
"future>=0.15",
"setuptools>=39.0",
"six>=1.11"
]
INSTALL_REQUIRES = [
"numpy>=1.15",
"cython>=0.26",
"future>=0.15",
"setuptools>=39.0",
"six>=1.11",
]
LICENSE = "EPL-1.0"
CLASSIFIERS = [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -195,7 +205,8 @@ def handle_ext_modules_general_os():
license=LICENSE,
classifiers=CLASSIFIERS,
packages=[PACKAGE_NAME, DEPRECATED_PACKAGE_NAME],
install_requires=DEPENDENCIES,
setup_requires=SETUP_REQUIRES,
install_requires=INSTALL_REQUIRES,
include_package_data=include_package_data,
data_files=DATA_FILES,
zip_safe=False, # required for Py27 on Windows to work
Expand Down

0 comments on commit b7fb1c9

Please sign in to comment.