Skip to content

Commit 45c3e3b

Browse files
committed
* 区分操作系统的依赖
1 parent d0cb7ce commit 45c3e3b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# 更新日志
2+
## JadeV2.4.1 - 2025-06-11
3+
* 区分操作系统的依赖
4+
---
5+
6+
7+
<details onclose>
8+
<summary>查看更多更新日志</summary>
29

310
## JadeV2.4.0 - 2025-06-11
411
* 去除不编译的文件,包括其import的环境也不写入
512
---
613

7-
<details onclose>
8-
<summary>查看更多更新日志</summary>
914

1015
## JadeV2.3.9 - 2025-06-11
1116
* 支持编译时不编译某个文件

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ def get_app_version():
2929
package_name = "jade"
3030
write_version(package_name=package_name)
3131
from setuptools import setup, find_packages
32+
import sys
3233
from jade import get_app_version,write_version,CreateSavePath
3334
if __name__ == '__main__':
35+
dependencies = ["easycython","pyinstaller","cryptography==3.4.8","cffi","psutil"]
36+
if sys.platform == 'win32':
37+
dependencies.append('Cython==0.29.33')
38+
elif sys.platform == 'linux':
39+
dependencies.append('Cython==3.0.8')
3440
pack_list = [package_name]
3541
CreateSavePath("Ouput")
3642
find_packages(package_name, pack_list)
@@ -49,7 +55,7 @@ def get_app_version():
4955
package_data={'': ['*Run','*png']},
5056
include_package_data=True,
5157
platforms="any",
52-
install_requires=["Cython==3.0.8","easycython","pyinstaller","cryptography==3.4.8","cffi","psutil"] # 这个项目需要的第三方库
58+
install_requires=dependencies # 这个项目需要的第三方库
5359
)
5460

5561

0 commit comments

Comments
 (0)