-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
64 lines (53 loc) · 2.01 KB
/
setup.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
58
59
60
61
62
63
64
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
from setuptools import setup
NAME = 'okftools'
DESCRIPTION = 'okftools to achieve overloading kernel function under Linux 5.19'
URL = 'https://github.com/heatingma/NIS3302-okftools'
AUTHOR = 'heatingma qigu cfg554 halsayxi sora'
REQUIRED = ['pygame']
here = os.path.abspath(os.path.dirname(__file__))
try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
class BdistWheelCommand(_bdist_wheel):
def run(self):
ori_dir = os.getcwd()
os.chdir('okftools')
os.system("python3 okftools_setup.py")
os.chdir(ori_dir)
super().run()
setup(
name=NAME,
version='0.1.1',
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
url=URL,
packages=['okftools','code_sources','docs'],
package_data={'okftools': ['*','netlink_kernel/*','GUI/*','user/clean_log/*', 'user/log_control/*', \
'user/receive message/*', 'user/send message/*', 'user/send_control_path/*'],
'code_sources': ['GUI/*', 'kernel/*', 'user/clean_log/*', 'user/log_control/*', \
'user/receive message/*', 'user/send message/*', 'user/send_control_path/*'],
'docs':['*']},
install_requires=REQUIRED,
include_package_data=True,
license='Mulan PSL v2',
python_requires='>=3.7',
classifiers=[
'License :: OSI Approved :: Mulan Permissive Software License v2 (MulanPSL-2.0)',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: POSIX :: Linux',
],
cmdclass={
'bdist_wheel': BdistWheelCommand,
},
)