Skip to content

Commit

Permalink
Enable modules on Python3/windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed May 1, 2017
1 parent 1f0a752 commit bf8fb96
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,14 @@ def has_ext_modules(self):
tests_require.extend([
'gevent', 'geventhttpclient', 'mock', 'setuptools>=17.1'])

if sys.version_info[0] > 2 and sys.platform == 'win32':
# C Modules don't build for python3 windows, and prevent tests from running
ext_modules = []
else:
ext_modules = [
Extension('dulwich._objects', ['dulwich/_objects.c'],
include_dirs=include_dirs),
Extension('dulwich._pack', ['dulwich/_pack.c'],
include_dirs=include_dirs),
Extension('dulwich._diff_tree', ['dulwich/_diff_tree.c'],
include_dirs=include_dirs),
]
ext_modules = [
Extension('dulwich._objects', ['dulwich/_objects.c'],
include_dirs=include_dirs),
Extension('dulwich._pack', ['dulwich/_pack.c'],
include_dirs=include_dirs),
Extension('dulwich._diff_tree', ['dulwich/_diff_tree.c'],
include_dirs=include_dirs),
]


setup(name='dulwich',
Expand Down

0 comments on commit bf8fb96

Please sign in to comment.