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

much faster compilation

parent 1c98e510
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ jobs: ...@@ -13,7 +13,7 @@ jobs:
- python/save-cache - python/save-cache
- run: - run:
command: | command: |
sudo pip install satella snakehouse sudo pip install satella>=2.14.23 snakehouse
name: Install necessary modules name: Install necessary modules
- run: - run:
command: | command: |
......
...@@ -7,12 +7,15 @@ from distutils.core import setup ...@@ -7,12 +7,15 @@ from distutils.core import setup
from setuptools import Extension from setuptools import Extension
from snakehouse import Multibuild, build from snakehouse import Multibuild, build
from satella.distutils import monkey_patch_parallel_compilation
def find_pyx(*path) -> tp.List[str]: def find_pyx(*path) -> tp.List[str]:
return list(find_files(os.path.join(*path), r'(.*)\.pyx', scan_subdirectories=True)) return list(find_files(os.path.join(*path), r'(.*)\.pyx', scan_subdirectories=True))
monkey_patch_parallel_compilation()
# extensions = [Extension("tempsdb.chunks", ['tempsdb/chunks.pyx']), # extensions = [Extension("tempsdb.chunks", ['tempsdb/chunks.pyx']),
# Extension("tempsdb.database", ['tempsdb/database.pyx']), # Extension("tempsdb.database", ['tempsdb/database.pyx']),
# Extension('tempsdb.exceptions', ['tempsdb/exceptions.pyx']), # Extension('tempsdb.exceptions', ['tempsdb/exceptions.pyx']),
...@@ -27,7 +30,7 @@ if 'CI' in os.environ: ...@@ -27,7 +30,7 @@ if 'CI' in os.environ:
setup(name='tempsdb', setup(name='tempsdb',
version='0.4.4a3', version='0.4.4a3',
packages=['tempsdb'], packages=['tempsdb'],
install_requires=['satella>=2.14.21', 'ujson'], install_requires=['satella>=2.14.23', 'ujson'],
ext_modules=build([Multibuild('tempsdb', find_pyx('tempsdb')), ], ext_modules=build([Multibuild('tempsdb', find_pyx('tempsdb')), ],
compiler_directives=directives), compiler_directives=directives),
# ext_modules=cythonize(extensions, # ext_modules=cythonize(extensions,
......
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