Skip to content

Commit 6ac49e8

Browse files
committed
check and remove osp comments
1 parent 6a23efd commit 6ac49e8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

setup.py

-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from distutils.core import setup
1818
import os
19-
# import os.path as osp
2019
from pathlib import Path
2120

2221
def get_package_data(name, extlist):
@@ -28,11 +27,9 @@ def get_package_data(name, extlist):
2827
for fname in filenames:
2928
if (
3029
not fname.startswith('.')
31-
# and osp.splitext(fname)[1] in extlist
3230
and Path(fname).suffix in extlist
3331
):
3432
flist.append(
35-
# osp.join(dirpath, fname)[offset:]
3633
str(Path(dirpath) / fname)[offset:]
3734
)
3835
return flist
@@ -42,8 +39,6 @@ def get_subpackages(name):
4239
"""Return subpackages of package *name*"""
4340
splist = []
4441
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')):
4742
if (Path(dirpath) / '__init__.py').is_file():
4843
splist.append(".".join(dirpath.split(os.sep)))
4944
return splist
@@ -86,14 +81,6 @@ def get_subpackages(name):
8681
),
8782
)
8883
},
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-
#],
9784
# use setuptools functionalities
9885
entry_points={
9986
'console_scripts': [

0 commit comments

Comments
 (0)