Skip to content

Commit

Permalink
Don't run configure if sdist (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion authored Mar 15, 2020
1 parent 3ee8ae1 commit 707e0be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
recursive-include libjpeg/src *
exclude libjpeg/src/config.log
exclude libjpeg/src/config.status
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ def get_source_files():
)
extra_compile_args = get_mscv_args()
elif platform.system() in ['Darwin', 'Linux']:
opts = get_gcc_args()
extra_compile_args += opts['ADDOPTS']
extra_link_args += opts['EXTRA_LIBS']
# Skip configuration if running with `sdist`
if 'sdist' not in sys.argv:
opts = get_gcc_args()
extra_compile_args += opts['ADDOPTS']
extra_link_args += opts['EXTRA_LIBS']


extensions = [
Expand Down

0 comments on commit 707e0be

Please sign in to comment.