Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a more helpful error on pip install. #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

# The install_requires does not support installation from git.
try:
import file_handlers.fits_handler
except ImportError:
print(
"\n"
"\n"
"You must manually install databroker_fitshandler:\n"
"pip install git+git://github.com/als-computing/datahandler_fits@master#egg=databroker-fitshandler"
"\n"
"\n"
)
import sys
sys.exit(1)
with open(path.join(here, 'requirements.txt')) as requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
requirements = [line for line in requirements_file.read().splitlines()
if not line.startswith('#')]
if not (line.startswith('#') or line.startswith("git+"))]
setup(

name='splash-server',
Expand Down