Skip to content

Commit

Permalink
wrapper setup don't clobber
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Nov 15, 2019
1 parent 5c42c1b commit 67d717a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/setuptools_dso/__init__.py
Expand Up @@ -14,10 +14,9 @@
)

def setup(**kws):
cmdclass = kws.get('cmdclass', {})
cmdclass['bdist_egg'] = bdist_egg
cmdclass['build_dso'] = build_dso
cmdclass['build_ext'] = build_ext
kws['cmdclass'] = cmdclass
kws['zip_safe'] = kws.get('zip_safe', False) and len(kws.get('ext_modules', []))==0 and len(kws.get('x_dsos', []))==0
cmdclass = kws.setdefault('cmdclass', {})
cmdclass.setdefault('bdist_egg', bdist_egg)
cmdclass.setdefault('build_dso', build_dso)
cmdclass.setdefault('build_ext', build_ext)
kws.setdefault('zip_safe', len(kws.get('ext_modules', []))==0 and len(kws.get('x_dsos', []))==0)
_setup(**kws)

0 comments on commit 67d717a

Please sign in to comment.