16
16
17
17
from distutils .core import setup
18
18
import os
19
- # import os.path as osp
20
19
from pathlib import Path
21
20
22
21
def get_package_data (name , extlist ):
@@ -28,11 +27,9 @@ def get_package_data(name, extlist):
28
27
for fname in filenames :
29
28
if (
30
29
not fname .startswith ('.' )
31
- # and osp.splitext(fname)[1] in extlist
32
30
and Path (fname ).suffix in extlist
33
31
):
34
32
flist .append (
35
- # osp.join(dirpath, fname)[offset:]
36
33
str (Path (dirpath ) / fname )[offset :]
37
34
)
38
35
return flist
@@ -42,8 +39,6 @@ def get_subpackages(name):
42
39
"""Return subpackages of package *name*"""
43
40
splist = []
44
41
for dirpath , _dirnames , _filenames in os .walk (name ):
45
- # if osp.isfile(osp.join(dirpath, '__init__.py')):
46
- # if osp.isfile(str(Path(dirpath) / '__init__.py')):
47
42
if (Path (dirpath ) / '__init__.py' ).is_file ():
48
43
splist .append ("." .join (dirpath .split (os .sep )))
49
44
return splist
@@ -86,14 +81,6 @@ def get_subpackages(name):
86
81
),
87
82
)
88
83
},
89
- # requires=["PyQt4 (>=4.5)"],
90
- #scripts=[
91
- # osp.join('scripts', fname)
92
- # for fname in (
93
- # 'register_python',
94
- # 'register_python.bat',
95
- # )
96
- #],
97
84
# use setuptools functionalities
98
85
entry_points = {
99
86
'console_scripts' : [
0 commit comments