Skip to content
Snippets Groups Projects

Fix/requirements into setuppy

Merged Robert Rosca requested to merge fix/requirements-into-setuppy into master
1 file
+ 0
27
Compare changes
  • Side-by-side
  • Inline
+ 0
27
@@ -20,32 +20,6 @@ extensions = [
]
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
# check if this is a karabo installation
python_path = sys.executable
if "karabo" not in python_path:
print(
"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
)
class PreInstallCommand(build):
"""Pre-installation for installation mode."""
@@ -104,7 +78,6 @@ setup(
},
cmdclass={
"build": PreInstallCommand,
"install": PostInstallCommand,
"build_ext": build_ext,
},
ext_modules=extensions,
Loading