fix: arguments for setup.py

This commit is contained in:
Guilhem Lavaux 2024-11-17 11:39:20 +01:00
parent 0cba23b248
commit 9f66b5cfc1
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ yum install -y zlib-devel
ln -fs /usr/local/bin/cmake /usr/bin/cmake
ALL_PYTHON="cp36-cp36m" # cp37-cp37m cp38-cp38"
ALL_PYTHON="cp39-cp39 cp310-cp310 cp311-cp311"
# Compile wheels
for pkg in $ALL_PYTHON; do

View File

@ -2,6 +2,7 @@ import stat
import os
import sys
import shutil
from sysconfig import get_config_var
from distutils.command.install_data import install_data
import pathlib
from setuptools import find_packages, setup, Extension
@ -168,8 +169,7 @@ class BuildCMakeExt(build_ext):
self.spawn(['bash', 'build.sh', '--build-dir', self.build_temp,
f"--python={sys.executable}", "--c-compiler", c_compiler,
"--cxx-compiler", cxx_compiler, '--purge',
'--skip-building-tests', '--hades-python', '--install-system-python',
'--deprecated',
'--hades-python', '--install-system-python',
'--extra-flags', f"-DPYTHON_SITE_PACKAGES={install_dir} -DINSTALL_COMPATIBILITY_PYBORG=OFF -DINSTALL_SHARED=ON -DDATA_INSTALL_DIR={install_dir}/aquila_borg/_data"
])