-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_glass.py
57 lines (52 loc) · 1.8 KB
/
setup_glass.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import setuptools
import os
def find_files(module, directory):
file_list = []
for root, _, files in os.walk(directory):
for file in files:
file_path = os.path.join(root, file)[(len(module) + 1) :]
abs_file_path = os.path.abspath(os.path.join(root, file)).replace("\\", "/")
if not os.path.isfile(abs_file_path):
continue
if "__glcache__" not in file_path:
file_list.append(file_path.replace("\\", "/"))
return file_list
extra_files = ["LICENSE", "pcpp/LICENSE"]
extra_files += find_files("glass", "glass/glsl")
extra_files += find_files("glass", "glass/ShaderParser_/tree-sitter-glsl")
with open("glass/README_PYPI.md", "r", encoding='utf-8') as in_file:
long_description = in_file.read()
setuptools.setup(
name="python_glass",
version="0.1.57",
author="王炳辉 (BingHui-WANG)",
author_email="[email protected]",
description="OpenGL wrapper for Glass-Engine",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Time-Coder/Glass-Engine",
packages=setuptools.find_packages(exclude=['*glass_engine*', '*assimpy*']),
package_data={
'glass': extra_files
},
include_package_data=False,
python_requires=">=3.7",
install_requires=[
"PyOpenGL",
"PyGLM",
"numpy",
"opencv-python",
"maxminddb-geolite2",
"wget",
"requests",
"chardet",
"tree-sitter<0.22.0",
"freetype-py"
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
'Operating System :: OS Independent',
],
entry_points={'pyinstaller40': ['hook-dirs = glass.__pyinstaller:get_hook_dirs']}
)