-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from yannikschaelte/master
Install setup requirements on-the-fly
- Loading branch information
Showing
1 changed file
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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", | ||
|
@@ -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 | ||
|