Skip to content

Commit 3da325b

Browse files
Get bdist_wheel working under Windows on Appveyor
1 parent ab198ed commit 3da325b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import os
2+
import sys
23
from distutils.core import setup, Extension
34
from glob import glob
45

6+
# Work-around.
7+
8+
if 'bdist_wheel' in sys.argv:
9+
del setup, Extension
10+
from setuptools import setup, Extension
11+
512
# Read the current version from ephem/__init__.py itself.
613

714
path = os.path.join(os.path.dirname(__file__), 'ephem', '__init__.py')

0 commit comments

Comments
 (0)