Skip to content

Commit

Permalink
Added source files to manifest. Fixed setup.py fallback to pure pytho…
Browse files Browse the repository at this point in the history
…n build
  • Loading branch information
Dan committed Mar 24, 2017
1 parent 0e13747 commit c9fe3ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
include versioneer.py
include influxgraph/_version.py
include *.c
include *.h
include node.h
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import os
import sys
import versioneer
from setuptools import setup, find_packages, Extension, Distribution as _Distribution
from setuptools import setup, find_packages, Extension, \
Distribution as _Distribution
from distutils.errors import CCompilerError
from distutils.errors import DistutilsExecError
from distutils.errors import DistutilsPlatformError
Expand Down Expand Up @@ -119,7 +120,7 @@ def run_setup(ext_modules):
print("WARNING: C extensions are disabled on this platform,",
"Pure Python build succeeded")
elif os.environ.get('DISABLE_INFLUXGRAPH_CEXT'):
run_setup(ext_modules)
run_setup({'ext_modules': []})
print("DISABLE_INFLUXGRAPH_CEXT is set - not building C extension",
"Pure Python build succeeded")
else:
Expand All @@ -131,6 +132,6 @@ def run_setup(ext_modules):
"building without it which will incur a performance penalty.",
"Reasons for failure may be printed above. Build will now",
"retry without C extension")
run_setup({})
run_setup({'ext_modules': []})
print("WARNING: C extension could not be compiled.",
"Pure Python build succeeded")

0 comments on commit c9fe3ac

Please sign in to comment.