summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-01-23 09:23:15 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-01-23 09:23:15 (GMT)
commit5633a8048fd8d59c9b23c98fb7e6419689b06316 (patch)
treee87ecd54a7197d6cd69ef0d82ae7dd7f8941c9a9 /setup.py
parentc3b0cd75b22aa09bd849a74fb92e22ba831dfcd4 (diff)
downloadcpython-5633a8048fd8d59c9b23c98fb7e6419689b06316.zip
cpython-5633a8048fd8d59c9b23c98fb7e6419689b06316.tar.gz
cpython-5633a8048fd8d59c9b23c98fb7e6419689b06316.tar.bz2
taking sysconfig out of distutils
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index e610dcb..f64fb45 100644
--- a/setup.py
+++ b/setup.py
@@ -6,9 +6,9 @@ __version__ = "$Revision$"
import sys, os, imp, re, optparse
from glob import glob
from platform import machine as platform_machine
+import sysconfig
from distutils import log
-from distutils import sysconfig
from distutils import text_file
from distutils.errors import *
from distutils.core import Extension, setup
@@ -140,7 +140,7 @@ class PyBuildExt(build_ext):
# Python header files
headers = [sysconfig.get_config_h_filename()]
- headers += glob(os.path.join(sysconfig.get_python_inc(), "*.h"))
+ headers += glob(os.path.join(sysconfig.get_path('platinclude'), "*.h"))
for ext in self.extensions[:]:
ext.sources = [ find_module_file(filename, moddirlist)
for filename in ext.sources ]