]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir (GH-12124)
authorVictor Stinner <vstinner@redhat.com>
Fri, 1 Mar 2019 14:59:39 +0000 (15:59 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2019 14:59:39 +0000 (15:59 +0100)
commit625dbf2567533e6001d57e5969fba75c1b6ece43
tree021c3f52778c9bf6e03f2a6abb0b6cebc7f63f12
parent8058bdae3e5e1f77a202d9dc907b4189409c9b03
bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir (GH-12124)

* Add PyBuildExt.srcdir atribute in setup.py: the source directory is
  now always absolute.
* Add PyBuildExt.inc_dirs and PyBuildExt.lib_dirs attributes:
  replace 'inc_dirs' and 'lib_dirs' local variables of
  detect_modules().
* Replace "from distutils.errors import *"
  with "from distutils.errors import CCompilerError, DistutilsError"
  to be able to use static analyzers like pyflakes
* Reorder imports.
setup.py