raylib 5.0.0.3__cp310-cp310-manylinux2014_aarch64.whl → 5.0.0.4__cp310-cp310-manylinux2014_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of raylib might be problematic. Click here for more details.
- raylib/__init__.py +8 -2
- raylib/{_raylib_cffi.abi3.so → _raylib_cffi.cpython-310-aarch64-linux-gnu.so} +0 -0
- raylib/build.py +5 -2
- raylib/glfw3.h.modified +5502 -0
- raylib/physac.h.modified +165 -0
- raylib/raygui.h.modified +843 -0
- raylib/raylib.h.modified +1409 -0
- raylib/raymath.h.modified +219 -0
- raylib/rlgl.h.modified +505 -0
- raylib/version.py +1 -1
- {raylib-5.0.0.3.dist-info → raylib-5.0.0.4.dist-info}/METADATA +4 -4
- raylib-5.0.0.4.dist-info/RECORD +21 -0
- {raylib-5.0.0.3.dist-info → raylib-5.0.0.4.dist-info}/WHEEL +1 -1
- raylib-5.0.0.3.dist-info/RECORD +0 -15
- {raylib-5.0.0.3.dist-info → raylib-5.0.0.4.dist-info}/LICENSE +0 -0
- {raylib-5.0.0.3.dist-info → raylib-5.0.0.4.dist-info}/top_level.txt +0 -0
raylib/__init__.py
CHANGED
|
@@ -12,12 +12,18 @@
|
|
|
12
12
|
#
|
|
13
13
|
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
import sys
|
|
16
|
+
try:
|
|
17
|
+
from ._raylib_cffi import ffi, lib as rl
|
|
18
|
+
except ModuleNotFoundError:
|
|
19
|
+
print("\n*** ERROR LOADING NATIVE CODE ***\n")
|
|
20
|
+
print("See https://github.com/electronstudio/raylib-python-cffi/issues/142\n", file=sys.stderr)
|
|
21
|
+
print("Your Python is: "+str(sys.implementation)+"\n", file=sys.stderr)
|
|
22
|
+
raise
|
|
16
23
|
from raylib._raylib_cffi.lib import *
|
|
17
24
|
from raylib.colors import *
|
|
18
25
|
from raylib.defines import *
|
|
19
26
|
import cffi
|
|
20
|
-
import sys
|
|
21
27
|
from .version import __version__
|
|
22
28
|
|
|
23
29
|
print("RAYLIB STATIC "+__version__+" LOADED", file=sys.stderr)
|
|
Binary file
|
raylib/build.py
CHANGED
|
@@ -164,16 +164,17 @@ def build_unix():
|
|
|
164
164
|
'-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework',
|
|
165
165
|
'CoreVideo']
|
|
166
166
|
libraries = []
|
|
167
|
-
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types"]
|
|
167
|
+
extra_compile_args = ["-Wno-error=incompatible-function-pointer-types", "-D_CFFI_NO_LIMITED_API"]
|
|
168
168
|
else: #platform.system() == "Linux":
|
|
169
169
|
print("BUILDING FOR LINUX")
|
|
170
170
|
extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL',
|
|
171
171
|
'-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic']
|
|
172
|
-
extra_compile_args = ["-Wno-incompatible-pointer-types"]
|
|
172
|
+
extra_compile_args = ["-Wno-incompatible-pointer-types", "-D_CFFI_NO_LIMITED_API"]
|
|
173
173
|
libraries = ['GL', 'm', 'pthread', 'dl', 'rt', 'X11', 'atomic']
|
|
174
174
|
|
|
175
175
|
ffibuilder.set_source("raylib._raylib_cffi",
|
|
176
176
|
ffi_includes,
|
|
177
|
+
py_limited_api=False,
|
|
177
178
|
include_dirs=[get_the_include_path()],
|
|
178
179
|
extra_link_args=extra_link_args,
|
|
179
180
|
extra_compile_args=extra_compile_args,
|
|
@@ -200,6 +201,8 @@ def build_windows():
|
|
|
200
201
|
#include "physac.h"
|
|
201
202
|
""",
|
|
202
203
|
extra_link_args=['/NODEFAULTLIB:MSVCRTD'],
|
|
204
|
+
extra_compile_args="/D_CFFI_NO_LIMITED_API",
|
|
205
|
+
py_limited_api=False,
|
|
203
206
|
libraries=['raylib', 'gdi32', 'shell32', 'user32', 'OpenGL32', 'winmm'],
|
|
204
207
|
include_dirs=['D:\\a\\raylib-python-cffi\\raylib-python-cffi\\raylib-c\\src',
|
|
205
208
|
'D:\\a\\raylib-python-cffi\\raylib-python-cffi\\raylib-c\\src\\external\\glfw\\include',
|