diff --git a/MANIFEST.in b/MANIFEST.in index 9912ce1..71971b5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,3 @@ recursive-include libjpeg/src * +exclude libjpeg/src/config.log +exclude libjpeg/src/config.status diff --git a/setup.py b/setup.py index 3db2390..3599e12 100644 --- a/setup.py +++ b/setup.py @@ -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 = [