Skip to content

Commit

Permalink
Removed extra setup steps, we should add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
luisulloa committed Dec 18, 2017
1 parent 7c24542 commit 3cd2a75
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import sys
import pip
from package_settings import NAME, VERSION, PACKAGES, DESCRIPTION
from setuptools import setup

# TODO is there a better way ? dependency_links seems to be deprecated and to require a version
if "--no-deps" in sys.argv:
sys.argv.remove("--no-deps")
print(f"Skipped dependencies of {NAME}", file=sys.stderr)
else:
command = pip.main(['install', '--upgrade', '--ignore-installed', '-r', 'requirements.txt'])
if command > 0:
print(f"Detected error while installing dependencies abandoning install of {NAME}", file=sys.stderr)
sys.exit(command)

setup(
name=NAME,
version=VERSION,
Expand Down

0 comments on commit 3cd2a75

Please sign in to comment.