Skip to content

Commit

Permalink
removing the current directory from search path in _ser/setup.py and …
Browse files Browse the repository at this point in the history
…_par/setup.py, since it causes an issue with recent setuptools
  • Loading branch information
sshiraiwa committed Aug 8, 2024
1 parent 60454c5 commit 61be956
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/testrelease_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jobs:
ls -l /opt/python/
export PATH=/opt/python/${{ matrix.pythonpath }}/bin:$PATH
python -c "import setuptools;print('setuptools version', setuptools.__version__)"
pip3 install setuptools==67.4.0
pip3 install auditwheel twine
pip3 install urllib3==1.26.6 # use older version to avoid OpenSSL vesion issue
Expand Down
2 changes: 1 addition & 1 deletion mfem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def debug_print(message):

print(message)

__version__ = '4.7.0rc4'
__version__ = '4.7.0rc5'

11 changes: 8 additions & 3 deletions mfem/_par/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"""
setup.py file for SWIG example
"""
from distutils.core import Extension, setup
import numpy
import os

import sys
import os
import numpy

print('building paralel version')

# this remove *.py in this directory to be imported from setuptools
sys.path.remove(os.path.abspath(os.path.dirname(sys.argv[0])))
from distutils.core import Extension, setup

# first load variables from PyMFEM_ROOT/setup_local.py


Expand Down
2 changes: 2 additions & 0 deletions mfem/_ser/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import os
import numpy

# this remove *.py in this directory to be imported from setuptools
sys.path.remove(os.path.abspath(os.path.dirname(sys.argv[0])))
from distutils.core import Extension, setup


Expand Down

0 comments on commit 61be956

Please sign in to comment.