Skip to content

bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir#12124

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:refactor_setup_py4
Mar 1, 2019
Merged

bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir#12124
vstinner merged 1 commit intopython:masterfrom
vstinner:refactor_setup_py4

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Mar 1, 2019

  • 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.

https://bugs.python.org/issue36146

* 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.
@vstinner vstinner merged commit 625dbf2 into python:master Mar 1, 2019
@vstinner vstinner deleted the refactor_setup_py4 branch March 1, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants