Skip to content

Commit 09ff864

Browse files
committed
tempy
1 parent 2ad1d8f commit 09ff864

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

buildconfig/get_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import ast
2525

2626
finds = re.findall(r"^version\s*=(.*)", config_text, flags=re.MULTILINE)
27-
if not finds:
28-
raise RuntimeError(f"Could not find version from {config_file}")
27+
if len(finds) != 1:
28+
raise RuntimeError(f"Could not find precise version from {config_file}")
2929

30-
version = ast.literal_eval(finds[-1].strip())
30+
version = ast.literal_eval(finds[0].strip())
3131

3232
print(version)

meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ elif host_machine.system() == 'emscripten'
3333
)
3434
else
3535
# here it one of: cygwin, dragonfly, freebsd, gnu, haiku, netbsd, openbsd, sunos
36-
error(
37-
'pygame-ce does not support building on your platform:',
36+
plat = 'unix'
37+
warning(
38+
'pygame-ce does not actively support building on your platform:',
3839
host_machine.system(),
3940
)
4041
endif

src_c/meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ _camera = py.extension_module(
343343
pg_scrap_link = [] # TODO: should this link logic be improved/made meson-ey?
344344
if plat == 'win'
345345
pg_scrap_link += ['-luser32', '-lgdi32']
346-
elif plat == 'linux'
347-
pg_scrap_link += '-lX11'
348346
endif
349347

350348
scrap = py.extension_module(

0 commit comments

Comments
 (0)