Skip to content
Snippets Groups Projects
Commit e6da37d8 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix sdist generation

parent 5c4366a5
No related branches found
No related tags found
No related merge requests found
Pipeline #8823 failed
......@@ -22,12 +22,15 @@ class get_pybind_include(object):
def get_root_flags(kind):
"""Retrieve the root flags for kind='inc' or kind'='lib'"""
return sp.Popen(["root-config", "--{}dir".format(kind)],
stdout=sp.PIPE).communicate()[0].strip().decode()
try:
return sp.Popen(["root-config", "--{}dir".format(kind)],
stdout=sp.PIPE).communicate()[0].strip().decode()
except OSError:
return ""
def get_jpp_include():
return os.path.join(os.getenv("JPP_DIR"), "software")
return os.path.join(os.getenv("JPP_DIR", ""), "software")
ext_modules = [
......
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