QOL docs, colors, version number, example imports
This commit is contained in:
parent
9e17046408
commit
50c2fb12e2
13 changed files with 102 additions and 66 deletions
|
@ -22,6 +22,7 @@ import itertools
|
|||
import os
|
||||
import pathlib
|
||||
import platform
|
||||
from .version import __version__
|
||||
|
||||
MODULE = pathlib.Path(__file__).parent
|
||||
|
||||
|
@ -52,6 +53,6 @@ ffi.cdef(open(MODULE / "raylib_modified.h").read().replace('RLAPI ', ''))
|
|||
try:
|
||||
raylib_fname = raylib_library_path()
|
||||
rl = ffi.dlopen(raylib_fname)
|
||||
print('LOADED DYNAMICALLY SHARED LIB "{}"'.format(raylib_fname))
|
||||
print('LOADED DYNAMICALLY SHARED LIB {} {}'.format(__version__, raylib_fname))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
1
dynamic/raylib/version.py
Symbolic link
1
dynamic/raylib/version.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../version.py
|
|
@ -1,6 +1,7 @@
|
|||
import pathlib
|
||||
from setuptools import setup
|
||||
from setuptools.dist import Distribution
|
||||
from version import __version__
|
||||
|
||||
# The directory containing this file
|
||||
HERE = pathlib.Path(__file__).parent
|
||||
|
@ -12,7 +13,7 @@ README = (HERE / "README.rst").read_text()
|
|||
# This call to setup() does all the work
|
||||
setup(
|
||||
name="raylib_dynamic",
|
||||
version="3.7.0.post6",
|
||||
version=__version__,
|
||||
description="Python CFFI bindings for Raylib DLL version",
|
||||
long_description=README,
|
||||
long_description_content_type="text/x-rst",
|
||||
|
|
1
dynamic/version.py
Symbolic link
1
dynamic/version.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
../version.py
|
Reference in a new issue