mirror of https://github.com/KLayout/klayout.git
Tested pymod python build with linux OS
This commit is contained in:
commit
456c062ac0
|
|
@ -222,7 +222,8 @@ script:
|
||||||
python setup.py build;
|
python setup.py build;
|
||||||
python setup.py bdist_wheel;
|
python setup.py bdist_wheel;
|
||||||
python setup.py install;
|
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.db as db; print(dir(db))';
|
||||||
python -c 'import klayout.rdb as rdb; print(dir(rdb))';
|
python -c 'import klayout.rdb as rdb; print(dir(rdb))';
|
||||||
python -c 'import klayout.tl as tl; print(dir(tl))';
|
python -c 'import klayout.tl as tl; print(dir(tl))';
|
||||||
|
|
@ -232,5 +233,4 @@ script:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- mkdir -p deploy
|
|
||||||
- dropbox-deployment
|
- dropbox-deployment
|
||||||
|
|
|
||||||
7
setup.py
7
setup.py
|
|
@ -148,8 +148,9 @@ class Config(object):
|
||||||
elif platform.system() == "Darwin":
|
elif platform.system() == "Darwin":
|
||||||
return []
|
return []
|
||||||
else:
|
else:
|
||||||
# Avoids many "type-punned pointer" warnings
|
return ["-Wno-strict-aliasing", # Avoids many "type-punned pointer" warnings
|
||||||
return ["-Wno-strict-aliasing"]
|
"-std=c++0x", # because we use unordered_map/unordered_set
|
||||||
|
]
|
||||||
|
|
||||||
def link_args(self, mod):
|
def link_args(self, mod):
|
||||||
"""
|
"""
|
||||||
|
|
@ -173,7 +174,7 @@ class Config(object):
|
||||||
# build path and the loader will fail.
|
# build path and the loader will fail.
|
||||||
args = []
|
args = []
|
||||||
args += ['-Wl,-soname,' + self.libname_of(mod)]
|
args += ['-Wl,-soname,' + self.libname_of(mod)]
|
||||||
if not '_dbpi' in mod:
|
if '_dbpi' not in mod:
|
||||||
loader_path = '$ORIGIN'
|
loader_path = '$ORIGIN'
|
||||||
else:
|
else:
|
||||||
loader_path = '$ORIGIN/..'
|
loader_path = '$ORIGIN/..'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue