Skip to content
Snippets Groups Projects
Commit 7f7ca8a5 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

Edit setup.py

parent 62415857
No related branches found
No related tags found
1 merge request!23.7 to 3.10 compatibility
Pipeline #16138 failed
...@@ -204,7 +204,11 @@ class m_build_ext(build_ext): ...@@ -204,7 +204,11 @@ class m_build_ext(build_ext):
for dirpath, dirnames, filenames in os.walk('.'): for dirpath, dirnames, filenames in os.walk('.'):
for filename in filenames: for filename in filenames:
if filename.endswith('.c'): if filename.endswith('.c'):
os.remove(os.path.join(dirpath, filename)) full_path = os.path.join(dirpath, filename)
# Optionnel : ne supprime que ceux qui ont un .pyx à côté
pyx_path = full_path[:-2] + '.pyx'
if os.path.exists(pyx_path):
os.remove(full_path)
root_dir = os.path.dirname(os.path.abspath(__file__)) root_dir = os.path.dirname(os.path.abspath(__file__))
cur_dir = os.getcwd() cur_dir = os.getcwd()
run_cmake(root_dir) run_cmake(root_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment