Skip to content

Commit

Permalink
Move to a more sane option for managing boost archive expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Jan 1, 2025
1 parent 6d23854 commit 275581e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/python_cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ jobs:
with:
platforms: all

- name: Force expansion of boost headers
run: |
mkdir b
cd b
cmake ..
- name: Build and test wheels
uses: pypa/cibuildwheel@v2.21.3
env:
Expand Down
8 changes: 8 additions & 0 deletions wrappers/Python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from sysconfig import get_config_var
from setuptools.command.build_ext import build_ext
from multiprocessing import cpu_count
import shutil

def copy_files():
def copytree(old, new):
Expand All @@ -24,6 +25,13 @@ def copy2(old, new):
copytree(os.path.join(CProot, 'externals/fmtlib/include/fmt'), os.path.join('CoolProp', 'include', 'fmt')) # Should be deprecated
#copytree(os.path.join(CProot, 'externals/fmtlib/include/fmt'), os.path.join('CoolProp','include','fmt'))
copy2(os.path.join(CProot, 'CoolPropBibTeXLibrary.bib'), os.path.join('CoolProp', 'CoolPropBibTeXLibrary.bib'))

here = os.path.dirname(__file__)
root = os.path.abspath(here + '/../..')
if not os.path.exists(root+'/boost_CoolProp/boost/version.hpp'):
print('expanding boost sources')
shutil.unpack_archive(root+'/dev/docker/boost_bcp_docker/boost_CoolProp.tar.xz', root)
assert(os.path.exists(root+'/boost_CoolProp/boost/version.hpp'))
print('files copied.')


Expand Down

0 comments on commit 275581e

Please # to comment.