Skip to content
Snippets Groups Projects
Commit f2365e5b authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

compile for release

parent b7ce980d
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,11 @@ jobs: ...@@ -38,9 +38,11 @@ jobs:
- stage: deploy - stage: deploy
python: "3.8" python: "3.8"
before_script: before_script:
- apt-get update
- apt-get install -y patchelf
- pip install wheel twine doctor-wheel auditwheel snakehouse satella - pip install wheel twine doctor-wheel auditwheel snakehouse satella
script: script:
- python setup.py bdist_wheel sdist - RELEASE=1 python setup.py bdist_wheel sdist
- cd dist - cd dist
- doctor-wheel *.whl - doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl - auditwheel repair --plat manylinux2014_x86_64 *.whl
...@@ -48,9 +50,11 @@ jobs: ...@@ -48,9 +50,11 @@ jobs:
- stage: deploy - stage: deploy
python: "3.9" python: "3.9"
before_script: before_script:
- apt-get update
- apt-get install -y patchelf
- pip install wheel twine doctor-wheel auditwheel snakehouse satella - pip install wheel twine doctor-wheel auditwheel snakehouse satella
script: script:
- python setup.py bdist_wheel - RELEASE=1 python setup.py bdist_wheel
- cd dist - cd dist
- doctor-wheel *.whl - doctor-wheel *.whl
- auditwheel repair --plat manylinux2014_x86_64 *.whl - auditwheel repair --plat manylinux2014_x86_64 *.whl
......
...@@ -17,7 +17,7 @@ monkey_patch_parallel_compilation() ...@@ -17,7 +17,7 @@ monkey_patch_parallel_compilation()
directives = {'language_level': '3'} directives = {'language_level': '3'}
ext_kwargs = {} ext_kwargs = {}
cythonize_kwargs = {} cythonize_kwargs = {}
if 'CI' in os.environ: if 'CI' in os.environ and 'RELEASE' not in os.environ:
ext_kwargs['define_macros'] = [("CYTHON_TRACE_NOGIL", "1")] ext_kwargs['define_macros'] = [("CYTHON_TRACE_NOGIL", "1")]
directives.update(profile=True, linetrace=True, embedsignature=True) directives.update(profile=True, linetrace=True, embedsignature=True)
cythonize_kwargs['gdb_debug'] = True cythonize_kwargs['gdb_debug'] = True
......
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