5
5
from os import path
6
6
7
7
here = path .abspath (path .dirname (__file__ ))
8
+ platform = sys .platform
8
9
9
10
# Get the long description from the README file
10
11
with open (path .join (here , 'README.md' ), encoding = 'utf-8' ) as f :
11
12
long_description = f .read ()
12
13
14
+ # install only the system's corresponding lib
15
+ if platform == 'win32' :
16
+ package_data = ['libraylib_shared.dll' ]
17
+ elif platform == 'darwin' :
18
+ package_data = ['libraylib.2.0.0.dylib' ]
19
+ elif platform .startswith ('linux' ) or platform == 'linux' :
20
+ package_data = ['libraylib.so.2.0.0' ]
21
+ else :
22
+ # or install all if the above fails
23
+ package_data = ['libraylib_shared.dll' ,
24
+ 'libraylib.so.2.0.0' ,
25
+ 'libraylib.2.0.0.dylib' ]
26
+
13
27
py_ver = sys .version_info
14
28
requirements = []
15
29
if py_ver [1 ] < 5 :
32
46
# There are some restrictions on what makes a valid project name
33
47
# specification here:
34
48
# https://packaging.python.org/specifications/core-metadata/#name
35
- name = 'raylibpy ' , # Required
49
+ name = 'raylib-py ' , # Required
36
50
37
51
# Versions should comply with PEP 440:
38
52
# https://www.python.org/dev/peps/pep-0440/
39
53
#
40
54
# For a discussion on single-sourcing the version across setup.py and the
41
55
# project code, see
42
56
# https://packaging.python.org/en/latest/single_source_version.html
43
- version = '0.1.0b ' , # Required
57
+ version = '0.1.0 ' , # Required
44
58
45
59
python_requires = '>=3.3, <4' ,
46
60
93
107
# 3 - Alpha
94
108
# 4 - Beta
95
109
# 5 - Production/Stable
96
- 'Development Status :: 4 - Beta ' ,
110
+ 'Development Status :: 5 - Production/Stable ' ,
97
111
98
112
# Indicate who your project is intended for
99
113
'Intended Audience :: Developers' ,
142
156
# If using Python 2.6 or earlier, then these have to be included in
143
157
# MANIFEST.in as well.
144
158
package_data = { # Optional
145
- 'raylibpy' : ['libraylib_shared.dll' ,
146
- 'libraylib.so.2.0.0' ,
147
- 'libraylib.2.0.0.dylib' ],
159
+ 'raylibpy' : package_data ,
148
160
},
149
161
150
162
# Although 'package_data' is the preferred approach, in some case you may
169
181
#'Say Thanks!': 'http://saythanks.io/to/example',
170
182
'Source' : 'https://github.com/overdev/raylibpy/' ,
171
183
},
172
- )
184
+ )
0 commit comments