Skip to content

Commit a230ba7

Browse files
committed
better setup.cfg settings, into setup.py
1 parent 1f61238 commit a230ba7

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[build_ext]
2-
inplace = 1
3-
41
[flake8]
52
ignore =
63
W503 # line break before binary operator

setup.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
# Allow importing local files, see https://snarky.ca/what-the-heck-is-pyproject-toml/
3535
import sys
3636
import warnings
37-
from distutils.sysconfig import get_python_inc as dist_get_python_inc
38-
from distutils.sysconfig import get_python_lib as dist_get_python_lib
39-
from distutils.text_file import TextFile as DistTextFile
40-
from distutils.util import check_environ as dist_check_environ
41-
from distutils.util import get_platform as dist_get_platform
4237

4338
# Import other stdlib packages
4439
from itertools import chain
@@ -78,12 +73,6 @@
7873
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
7974

8075

81-
# Collect env-specific settings
82-
platform = dist_get_platform() # linux-x86_64
83-
dist_check_environ()
84-
85-
plat_indep_libraries = Path(dist_get_python_lib())
86-
plat_indep_include = Path(dist_get_python_inc())
8776

8877
# We need to know where we are for many things
8978
this_file = Path(__file__)
@@ -149,5 +138,6 @@ def run(self):
149138

150139
if __name__ == "__main__":
151140
setup(
141+
zip_safe=False, # https://mypy.readthedocs.io/en/latest/installed_packages.html
152142
cmdclass={"build_ext": build_DD_before_ext, "build_DD": BuildDDCommand},
153143
)

0 commit comments

Comments
 (0)