Skip to content

Commit f9de055

Browse files
committed
Avoid getting contaminated by pkg-config's absolute paths.
1 parent c70d39f commit f9de055

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Run Build
2626
run: bash build.mac.sh "${{ github.workspace }}/Nuitka-Python-Out"
2727
- name: Cleanup artifact
28-
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
28+
run: find "${{ github.workspace }}/Nuitka-Python-Out" \( -iname '*.o' -iname '*.pc' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
2929
- uses: actions/upload-artifact@v4
3030
with:
3131
name: Nuitka-Python311_mac_arm64

Lib/pip.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ def main():
252252
if platform.system() == "Darwin":
253253
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
254254

255+
# pkg-config uses absolute paths, which do not allow for
256+
if platform.system() != "Windows":
257+
os.environ["PKG_CONFIG"] = "/disabled"
258+
255259
import site
256260

257261
for path in site.getsitepackages():

0 commit comments

Comments
 (0)