Skip to content

Commit

Permalink
remoed CIBW_ENVIRONMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayamInSync committed Aug 23, 2024
1 parent 028a62f commit 5dcc19b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_wheels_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD_VERBOSITY: "3"
CIBW_ENVIRONMENT: PATH="$HOME/miniconda/bin:$PATH" LD_LIBRARY_PATH="$HOME/miniconda/lib:$LD_LIBRARY_PATH"
working-directory: ./quaddtype

- uses: actions/upload-artifact@v2
Expand Down
14 changes: 9 additions & 5 deletions quaddtype/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,26 @@ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O mi
bash miniconda.sh -b -p $HOME/miniconda &&
$HOME/miniconda/bin/conda install -y -c conda-forge sleef
"""
environment = {LD_LIBRARY_PATH = "$HOME/miniconda/lib:$LD_LIBRARY_PATH"}
environment = {LD_LIBRARY_PATH = "$HOME/miniconda/lib:$LD_LIBRARY_PATH", LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH", CFLAGS = "-I$HOME/miniconda/include $CFLAGS",LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS"}

[tool.cibuildwheel.macos]
before-all = """
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh &&
bash miniconda.sh -b -p $HOME/miniconda &&
$HOME/miniconda/bin/conda install -y -c conda-forge sleef
"""
environment = {DYLD_LIBRARY_PATH = "$HOME/miniconda/lib:$DYLD_LIBRARY_PATH"}
environment = {DYLD_LIBRARY_PATH = "$HOME/miniconda/lib:$DYLD_LIBRARY_PATH", LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH", CFLAGS = "-I$HOME/miniconda/include $CFLAGS", LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS"}

# [tool.cibuildwheel.windows]
# before-all = """
# powershell -Command "Invoke-WebRequest -Uri https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -OutFile miniconda.exe" &&
# start /wait "" miniconda.exe /S /D=%UserProfile%\Miniconda3 &&
# set PATH=%UserProfile%\Miniconda3;%UserProfile%\Miniconda3\Scripts;%PATH% &&
# conda install -y -c conda-forge sleef
# %UserProfile%\Miniconda3\Scripts\conda install -y -c conda-forge sleef
# """
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
# environment = {
# LIBRARY_PATH = "%UserProfile%\\Miniconda3\\Library\\lib;%LIBRARY_PATH%",
# INCLUDE = "%UserProfile%\\Miniconda3\\Library\\include;%INCLUDE%",
# LIB = "%UserProfile%\\Miniconda3\\Library\\lib;%LIB%"
# }

0 comments on commit 5dcc19b

Please sign in to comment.