Skip to content

Commit b3fac28

Browse files
debug
1 parent c4c9dcc commit b3fac28

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,11 @@ jobs:
151151
RAYLIB_PLATFORM: ${{ matrix.raylib-platform }}
152152
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
153153
run: |
154-
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
155-
ls -l /usr/local/lib/pkgconfig
156-
pkg-config --libs raylib
157-
echo $?
158-
echo $PKG_CONFIG_PATH
159154
${{ matrix.python-version }} -m pip install --upgrade pip
160155
${{ matrix.python-version }} -m pip install --upgrade "cffi>=1.17.1"
161156
${{ matrix.python-version }} -m pip install --upgrade wheel
162157
${{ matrix.python-version }} -m pip install --upgrade setuptools
163-
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ${{ matrix.python-version }} setup.py bdist_wheel --plat-name manylinux2014_x86_64
158+
${{ matrix.python-version }} setup.py bdist_wheel --plat-name manylinux2014_x86_64
164159
shell: bash
165160
- name: Test
166161
run: |

raylib/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@
3333
RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop")
3434

3535
def check_raylib_installed():
36+
# this should be 'pkg-config --exists raylib' but result is non-deterministic on old versions of pkg-config!
3637
return subprocess.run(['pkg-config', '--libs', 'raylib'], text=True, stdout=subprocess.PIPE).returncode == 0
3738

3839
def check_SDL_installed():
40+
# this should be 'pkg-config --exists sdl2' but result is non-deterministic on old versions of pkg-config!
3941
return subprocess.run(['pkg-config', '--libs', 'sdl2'], text=True, stdout=subprocess.PIPE).returncode == 0
4042

4143
def get_the_include_path():
@@ -111,7 +113,6 @@ def check_header_exists(file):
111113
def build_unix():
112114
if not check_raylib_installed():
113115
print("PKG_CONFIG_PATH is set to: "+os.getenv("PKG_CONFIG_PATH"))
114-
print(get_lib_flags())
115116
raise Exception("ERROR: raylib not found by pkg-config. Please install pkg-config and Raylib.")
116117

117118
if RAYLIB_PLATFORM=="SDL" and not check_SDL_installed():

0 commit comments

Comments
 (0)