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

Remove ROOT dependency

parent c10cd6bb
No related branches found
No related tags found
No related merge requests found
......@@ -20,15 +20,6 @@ class get_pybind_include(object):
return pybind11.get_include(self.user)
def get_root_flags(kind):
"""Retrieve the root flags for kind='inc' or kind'='lib'"""
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")
......@@ -40,11 +31,8 @@ ext_modules = [
include_dirs=[
get_pybind_include(),
get_pybind_include(user=True),
get_root_flags("inc"),
get_jpp_include()
],
library_dirs=[get_root_flags("lib")],
libraries=["MathCore"],
language='c++')
]
......
......@@ -10,6 +10,7 @@
#include "JTools/JElement.hh"
#include "JTools/JResult.hh"
#include "JPhysics/JPDFTable.hh"
#include "JPhysics/JPDFToolkit.hh"
#include "JPhysics/JPDFTypes.hh"
#include "JMath/JZero.hh"
......
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