Skip to content

Commit 4a52d94

Browse files
authored
Merge pull request #22 from jbusecke/fix_version
Implement numpy voodoo
2 parents 4be6662 + 877b746 commit 4a52d94

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source/aerobulk/_version.py export-subst

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include versioneer.py
2+
include source/aerobulk/_version.py

setup.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
import os
22

3+
# We need to import setuptools here in order for it to persist in sys.modules.
4+
# Its presence/absence is used in subclassing setup in numpy/distutils/core.py.
5+
# However, we need to run the distutils version of sdist, so import that first
6+
# so that it is in sys.modules
7+
import numpy.distutils.command.sdist # noqa
8+
import setuptools # noqa
39
from numpy.distutils.core import Extension, setup
410
from numpy.distutils.fcompiler import get_default_fcompiler
511

12+
# Trying this from the numpy setup.py
13+
14+
615
here = os.path.dirname(__file__)
716
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
817
long_description = f.read()

0 commit comments

Comments
 (0)