Skip to content

Commit d6565da

Browse files
committed
0.1.0 release update.
1 parent b79d7d7 commit d6565da

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

setup.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,25 @@
55
from os import path
66

77
here = path.abspath(path.dirname(__file__))
8+
platform = sys.platform
89

910
# Get the long description from the README file
1011
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
1112
long_description = f.read()
1213

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+
1327
py_ver = sys.version_info
1428
requirements = []
1529
if py_ver[1] < 5:
@@ -32,15 +46,15 @@
3246
# There are some restrictions on what makes a valid project name
3347
# specification here:
3448
# https://packaging.python.org/specifications/core-metadata/#name
35-
name='raylibpy', # Required
49+
name='raylib-py', # Required
3650

3751
# Versions should comply with PEP 440:
3852
# https://www.python.org/dev/peps/pep-0440/
3953
#
4054
# For a discussion on single-sourcing the version across setup.py and the
4155
# project code, see
4256
# https://packaging.python.org/en/latest/single_source_version.html
43-
version='0.1.0b', # Required
57+
version='0.1.0', # Required
4458

4559
python_requires='>=3.3, <4',
4660

@@ -93,7 +107,7 @@
93107
# 3 - Alpha
94108
# 4 - Beta
95109
# 5 - Production/Stable
96-
'Development Status :: 4 - Beta',
110+
'Development Status :: 5 - Production/Stable',
97111

98112
# Indicate who your project is intended for
99113
'Intended Audience :: Developers',
@@ -142,9 +156,7 @@
142156
# If using Python 2.6 or earlier, then these have to be included in
143157
# MANIFEST.in as well.
144158
package_data={ # Optional
145-
'raylibpy': ['libraylib_shared.dll',
146-
'libraylib.so.2.0.0',
147-
'libraylib.2.0.0.dylib'],
159+
'raylibpy': package_data,
148160
},
149161

150162
# Although 'package_data' is the preferred approach, in some case you may
@@ -169,4 +181,4 @@
169181
#'Say Thanks!': 'http://saythanks.io/to/example',
170182
'Source': 'https://github.com/overdev/raylibpy/',
171183
},
172-
)
184+
)

0 commit comments

Comments
 (0)