changed: build opm-common python extension using cmake

only use setup.py to generate wheels. adjust pypi packaging
accordingly
This commit is contained in:
Arne Morten Kvarving
2023-01-06 15:59:34 +01:00
parent 85fc610c85
commit 5d854d1d6d
11 changed files with 101 additions and 301 deletions

View File

@@ -7,9 +7,10 @@ import filecmp
src_root = sys.argv[1]
target_prefix = sys.argv[2]
install = int(sys.argv[3])
target_destdir = os.environ.get("DESTDIR", "")
if target_destdir != "":
target_prefix = target_destdir + target_prefix
if install:
target_destdir = os.environ.get("DESTDIR", "")
if target_destdir != "":
target_prefix = target_destdir + target_prefix
if not os.path.isdir(src_root):
sys.exit("No such directory: {}".format(src_root))