Tested pymod python build with linux OS

This commit is contained in:
Thomas Ferreira de Lima 2018-09-22 13:13:51 -04:00
commit 456c062ac0
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
2 changed files with 6 additions and 5 deletions

View File

@ -222,7 +222,8 @@ script:
python setup.py build;
python setup.py bdist_wheel;
python setup.py install;
cp -a dist deploy/;
mkdir -p deploy/dist;
cp -a dist deploy/dist;
python -c 'import klayout.db as db; print(dir(db))';
python -c 'import klayout.rdb as rdb; print(dir(rdb))';
python -c 'import klayout.tl as tl; print(dir(tl))';
@ -232,5 +233,4 @@ script:
fi
after_success:
- mkdir -p deploy
- dropbox-deployment

View File

@ -148,8 +148,9 @@ class Config(object):
elif platform.system() == "Darwin":
return []
else:
# Avoids many "type-punned pointer" warnings
return ["-Wno-strict-aliasing"]
return ["-Wno-strict-aliasing", # Avoids many "type-punned pointer" warnings
"-std=c++0x", # because we use unordered_map/unordered_set
]
def link_args(self, mod):
"""
@ -173,7 +174,7 @@ class Config(object):
# build path and the loader will fail.
args = []
args += ['-Wl,-soname,' + self.libname_of(mod)]
if not '_dbpi' in mod:
if '_dbpi' not in mod:
loader_path = '$ORIGIN'
else:
loader_path = '$ORIGIN/..'