Skip to content
Snippets Groups Projects
Commit bfb158f9 authored by Robert Rosca's avatar Robert Rosca
Browse files

Adjust post install command, add noqa comments to long lines

parent e53e1b1d
No related branches found
No related tags found
1 merge request!437Fix/requirements into setuppy
This commit is part of merge request !437. Comments created here will be created in the context of that merge request.
......@@ -27,17 +27,22 @@ class PostInstallCommand(install):
install.run(self)
# check if this is a karabo installation
python_path = sys.executable
if "karabo" in python_path:
print("Karabo installation detected, checking for PyDetLib installation")
if importlib.util.find_spec("XFELDetAna") is None:
print("No PyDetLib installation found, attempting to install")
check_call(
"karabo -g https://in.xfel.eu/gitlab install pyDetLib master".split()
)
else:
if "karabo" not in python_path:
print(
"Python environment seems to not be a Karabo environment. Please"
"install PyDetLib manually."
"Python environment seems to not be a Karabo environment."
"Please install PyDetLib manually."
)
return
print(
"Karabo installation detected, checking for PyDetLib installation"
)
if importlib.util.find_spec("XFELDetAna") is None:
print("No PyDetLib installation found, attempting to install")
check_call(
"karabo -g https://in.xfel.eu/gitlab install pyDetLib master".split() # noqa
)
......@@ -73,7 +78,8 @@ setup(
description="",
long_description="",
long_description_content_type="text/markdown",
license="(c) European XFEL GmbH 2018", # TODO: find licence, assuming this will be open sourced eventually
# TODO: find licence, assuming this will be open sourced eventually
license="(c) European XFEL GmbH 2018",
packages=[
"cal_tools",
"xfel_calibrate",
......@@ -103,9 +109,9 @@ setup(
},
ext_modules=extensions,
install_requires=[
"iCalibrationDB @ git+ssh://git@git.xfel.eu:10022/detectors/cal_db_interactive.git@2.0.1",
"nbparameterise @ git+ssh://git@git.xfel.eu:10022/detectors/nbparameterise.git@0.3",
"XFELDetectorAnalysis @ git+ssh://git@git.xfel.eu:10022/karaboDevices/pyDetLib.git@2.5.6-2.10.0#subdirectory=lib",
"iCalibrationDB @ git+ssh://git@git.xfel.eu:10022/detectors/cal_db_interactive.git@2.0.1", # noqa
"nbparameterise @ git+ssh://git@git.xfel.eu:10022/detectors/nbparameterise.git@0.3", # noqa
"XFELDetectorAnalysis @ git+ssh://git@git.xfel.eu:10022/karaboDevices/pyDetLib.git@2.5.6-2.10.0#subdirectory=lib", # noqa
"Cython==0.29.21",
"Jinja2==2.11.2",
"astcheck==0.2.5",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment