Skip to content

Commit 74222f8

Browse files
authored
Merge pull request #138 from mattip/issue137
replace backslash with forward slash in get_pkg_config
2 parents 6f32deb + 1ec2725 commit 74222f8

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

.github/workflows/windows.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
if ( ${{ matrix.INTERFACE64 }} -eq "1" ) {
5656
echo "INTERFACE64=1" >> $env:GITHUB_ENV
5757
}
58+
$CIBW = "${{ github.workspace }}/.openblas"
59+
$CIBW = $CIBW.replace("\","/")
60+
echo "CIBW_ENVIRONMENT_WINDOWS=PKG_CONFIG_PATH=$CIBW" >> $env:GITHUB_ENV
61+
62+
- name: Debug
63+
run: |
64+
echo CIBW_ENVIRONMENT_WINDOWS=$env:CIBW_ENVIRONMENT_WINDOWS
5865
5966
- name: Build
6067
run: |
@@ -113,6 +120,9 @@ jobs:
113120
sed -e "s/openblas64/openblas32/" -i local/scipy_openblas32/__init__.py
114121
sed -e "s/openblas64/openblas32/" -i local/scipy_openblas32/__main__.py
115122
fi
123+
echo "" >> LICENSE.txt
124+
echo "----" >> LICENSE.txt
125+
echo "" >> LICENSE.txt
116126
cat tools/LICENSE_win32.txt >> LICENSE.txt
117127
python -m pip wheel -w dist -vv .
118128
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
@@ -136,17 +146,17 @@ jobs:
136146

137147
- name: Test 64-bit interface wheel
138148
if: matrix.INTERFACE64 == '1'
139-
shell: bash
140149
run: |
141150
python -m pip install --no-index --find-links dist scipy_openblas64
142151
python -m scipy_openblas64
152+
python -c "import scipy_openblas64; print(scipy_openblas64.get_pkg_config())"
143153
144154
- name: Test 32-bit interface wheel
145155
if: matrix.INTERFACE64 != '1'
146-
shell: bash
147156
run: |
148157
python -m pip install --no-index --find-links dist scipy_openblas32
149158
python -m scipy_openblas32
159+
python -c "import scipy_openblas32; print(scipy_openblas32.get_pkg_config())"
150160
151161
- uses: conda-incubator/[email protected]
152162
with:

LICENSE renamed to LICENSE.txt

File renamed without changes.

local/scipy_openblas64/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_pkg_config(use_preloading=False):
8484
Libs: {libs_flags}
8585
Libs.private: ${{extralib}}
8686
Cflags: -I${{includedir}} {cflags}
87-
""")
87+
""").replace("\\", "/")
8888

8989

9090
if sys.platform == "win32":

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy-openblas64"
11-
version = "0.3.26.0.3"
11+
version = "0.3.26.0.4"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

tools/build_wheel.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,19 @@ if [[ $py_version != $pkg_version* ]]; then
3333
echo Version from pyproject.toml "$py_version" does not match version from build "pkg_version"
3434
exit 1
3535
fi
36-
# Do not package the pkgconfig stuff, use the wheel functionality instead
37-
rm -rf local/scipy_openblas64/lib/pkgconfig
3836

37+
rm -rf local/scipy_openblas64/lib/pkgconfig
38+
echo "" >> LICENSE.txt
39+
echo "----" >> LICENSE.txt
40+
echo "" >> LICENSE.txt
3941
if [ $(uname) == "Darwin" ]; then
4042
cat tools/LICENSE_osx.txt >> LICENSE.txt
4143
else
4244
cat tools/LICENSE_linux.txt >> LICENSE.txt
4345
fi
4446

4547
if [ "${INTERFACE64}" != "1" ]; then
46-
# rewrite the name of the project to scipy_openblas32
48+
# rewrite the name of the project to scipy-openblas32
4749
# this is a hack, but apparently there is no other way to change the name
4850
# of a pyproject.toml project
4951
#

0 commit comments

Comments
 (0)