-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove build dependency checks. (#48)
- Loading branch information
Showing
1 changed file
with
2 additions
and
21 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 |
---|---|---|
@@ -1,26 +1,7 @@ | ||
from setuptools import setup | ||
#### | ||
# Build dependency checks | ||
# | ||
# Temporary, until pyproject.toml is widely supported. We're expecting | ||
# most users to install a wheel or conda package, neither of which | ||
# requires running setup.py and building a package. So these checks | ||
# are for packagers and those installing from e.g. github. | ||
import setuptools | ||
from pkg_resources import parse_version | ||
missing_build_dep = False | ||
if parse_version(setuptools.__version__)<parse_version('30.3.0'): | ||
missing_build_dep = True | ||
try: | ||
import param | ||
if parse_version(param.__version__)<parse_version('1.7.0'): | ||
missing_build_dep = True | ||
except: | ||
missing_build_dep = True | ||
|
||
if missing_build_dep: | ||
raise ValueError('Building pyct requires setuptools>=30.3.0 and param>=1.7.0; please upgrade to pip>=10 and try again. Alternatively, install the build dependencies manually first (e.g. `pip install --upgrade "setuptools>=30.3.0" "param>=1.7.0"` or `conda install -c pyviz "setuptools>=30.3.0" "param>=1.7.0"`)') | ||
##### | ||
# TODO: need to put in build dependency checks until pyproject.toml is widely | ||
# supported. | ||
|
||
if __name__ == "__main__": | ||
setup() |