Skip to content

Commit

Permalink
Remove build dependency checks. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceball committed Jul 7, 2018
1 parent 9999e9f commit b2b1a3f
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions setup.py
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()

0 comments on commit b2b1a3f

Please sign in to comment.