|
1 | | -# -*- coding: utf-8 -*- |
2 | 1 | ######################################################################## |
3 | 2 | # |
4 | 3 | # pyfastnoisesimd |
|
15 | 14 | import os |
16 | 15 | import platform |
17 | 16 | import re |
18 | | -import sys |
19 | 17 | import tempfile |
20 | 18 | import subprocess |
21 | 19 |
|
|
25 | 23 | from distutils.sysconfig import customize_compiler |
26 | 24 | from setuptools import Extension |
27 | 25 | from setuptools import setup |
28 | | -from glob import glob |
29 | 26 |
|
30 | | - |
31 | | -# pyfastnoisesimd version |
| 27 | +# `pyfastnoisesimd` version |
32 | 28 | major_ver = 0 |
33 | 29 | minor_ver = 4 |
34 | 30 | nano_ver = 3 |
35 | | - |
36 | 31 | branch = '' |
37 | 32 |
|
38 | | -VERSION = "%d.%d.%d.%s" % (major_ver, minor_ver, nano_ver, branch) |
| 33 | +VERSION = f'{major_ver}.{minor_ver}.{nano_ver}.{branch}' if branch else f'{major_ver}.{minor_ver}.{nano_ver}' |
39 | 34 |
|
40 | 35 | # Create the version.py file |
41 | 36 | open('pyfastnoisesimd/version.py', 'w').write('__version__ = "%s"\n' % VERSION) |
42 | 37 |
|
43 | 38 | # Sources and headers |
44 | 39 | sources = [ |
45 | | - 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD.cpp', |
46 | | - 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp', |
47 | | - 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.cpp', |
48 | | - 'pyfastnoisesimd/wrapper.cpp', |
49 | | -] |
| 40 | + 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD.cpp', |
| 41 | + 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp', |
| 42 | + 'pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.cpp', |
| 43 | + 'pyfastnoisesimd/wrapper.cpp', |
| 44 | + ] |
50 | 45 |
|
51 | 46 | # For (some versions of) `pip`, the first command run is `python setup.py egg_info` |
52 | 47 | # which crashes if `numpy` is not present, so we protect it here. |
@@ -298,10 +293,10 @@ def compiler_has_flags(self, compiler, name, flags): |
298 | 293 | Intended Audience :: Information Technology |
299 | 294 | License :: OSI Approved :: BSD License |
300 | 295 | Programming Language :: Python |
301 | | -Programming Language :: Python :: 3.6 |
302 | | -Programming Language :: Python :: 3.7 |
303 | 296 | Programming Language :: Python :: 3.8 |
304 | 297 | Programming Language :: Python :: 3.9 |
| 298 | +Programming Language :: Python :: 3.10 |
| 299 | +Programming Language :: Python :: 3.11 |
305 | 300 | Topic :: Software Development :: Libraries :: Python Modules |
306 | 301 | Topic :: Multimedia :: Graphics :: 3D Modeling |
307 | 302 | Operating System :: Microsoft :: Windows |
|
0 commit comments