Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't copy GDAL API C files in clean target. #361

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -177,6 +177,7 @@ def run(self):
extra_link_args=extra_link_args)

# When building from a repo, Cython is required.
ext_modules = []
if source_is_repo and "clean" not in sys.argv:
log.info("MANIFEST.in found, presume a repo, cythonizing...")
if not cythonize:
Expand All @@ -194,7 +195,7 @@ def run(self):
Extension('fiona._err', ['fiona/_err.pyx'], **ext_options),
Extension('fiona.ogrext', ['fiona/ogrext.pyx'], **ext_options)])
# If there's no manifest template, as in an sdist, we just specify .c files.
else:
elif "clean" not in sys.argv:
copy_gdalapi_c(gdalversion)
ext_modules = [
Extension('fiona._transform', ['fiona/_transform.cpp'], **ext_options),
Expand Down