raylib 5.0.0.3__cp311-cp311-manylinux2014_x86_64.whl → 5.0.0.5__cp311-cp311-manylinux2014_x86_64.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/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',
raylib/defines.py CHANGED
@@ -14,10 +14,7 @@ MATERIAL_MAP_DIFFUSE = raylib.MATERIAL_MAP_ALBEDO
14
14
  MATERIAL_MAP_SPECULAR = raylib.MATERIAL_MAP_METALNESS
15
15
  SHADER_LOC_MAP_DIFFUSE = raylib.SHADER_LOC_MAP_ALBEDO
16
16
  SHADER_LOC_MAP_SPECULAR = raylib.SHADER_LOC_MAP_METALNESS
17
- PI: float = 3.141592653589793
18
17
  EPSILON: float = 1e-06
19
- DEG2RAD = PI / 180.0
20
- RAD2DEG = 180.0 / PI
21
18
  RLGL_VERSION: str = "4.5"
22
19
  RL_DEFAULT_BATCH_BUFFER_ELEMENTS: int = 8192
23
20
  RL_DEFAULT_BATCH_BUFFERS: int = 1
@@ -91,9 +88,6 @@ RL_BLEND_SRC_ALPHA: int = 32971
91
88
  RL_BLEND_COLOR: int = 32773
92
89
  RL_SHADER_LOC_MAP_DIFFUSE = raylib.RL_SHADER_LOC_MAP_ALBEDO
93
90
  RL_SHADER_LOC_MAP_SPECULAR = raylib.RL_SHADER_LOC_MAP_METALNESS
94
- PI: float = 3.141592653589793
95
- DEG2RAD = PI / 180.0
96
- RAD2DEG = 180.0 / PI
97
91
  GL_SHADING_LANGUAGE_VERSION: int = 35724
98
92
  GL_COMPRESSED_RGB_S3TC_DXT1_EXT: int = 33776
99
93
  GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: int = 33777