-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Cadair/no_more_setup_py
- Loading branch information
Showing
7 changed files
with
149 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,6 @@ htmlcov | |
|
||
# PyCharm | ||
.idea | ||
|
||
# Hypothesis | ||
.hypothesis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
from configparser import ConfigParser | ||
|
||
from ._openmp_helpers import add_openmp_flags_if_available | ||
from ._setup_helpers import get_compiler, get_extensions, pkg_config | ||
from ._utils import import_file, write_if_different | ||
from .version import version as __version__ | ||
|
||
|
||
def _finalize_distribution_hook(distribution): | ||
""" | ||
Entry point for setuptools which allows extension-helpers to be enabled | ||
from setup.cfg without the need for setup.py. | ||
""" | ||
config_files = distribution.find_config_files() | ||
if len(config_files) == 0: | ||
return | ||
cfg = ConfigParser() | ||
cfg.read(config_files[0]) | ||
if (cfg.has_option("extension-helpers", "use_extension_helpers") and | ||
cfg.get("extension-helpers", "use_extension_helpers").lower() == 'true'): | ||
distribution.ext_modules = get_extensions() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters