Skip to content

Commit 71bb55a

Browse files
committed
Stackless issue python#207: Update distutils
Remove the Stackless specific include-path.
1 parent 46106ce commit 71bb55a

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

Lib/distutils/command/build_ext.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,6 @@ def finalize_options(self):
164164
self.include_dirs.append(py_include)
165165
if plat_py_include != py_include:
166166
self.include_dirs.append(plat_py_include)
167-
168-
stackless_plat_py_include = os.path.join(plat_py_include, "Stackless")
169-
if os.path.exists(stackless_plat_py_include):
170-
self.include_dirs.append(stackless_plat_py_include)
171-
else:
172-
# Do we already have the stackless includes covered in the normal Python include directory? (Linux)
173-
stackless_include_file = os.path.join(py_include, "stackless.h")
174-
if not os.path.exists(stackless_include_file):
175-
# We need to add the Stackless directory if it is there as a subdirectory. (Windows installation)
176-
stackless_py_include = os.path.join(py_include, "Stackless")
177-
if os.path.exists(stackless_py_include):
178-
self.include_dirs.append(stackless_py_include)
179-
else:
180-
# We need to add the Stackless directory if it is on the same level (Windows and Linux builds)
181-
py_include_parent_dir = os.path.dirname(py_include)
182-
stackless_py_include = os.path.join(py_include_parent_dir, "Stackless")
183-
if os.path.exists(stackless_py_include):
184-
self.include_dirs.append(stackless_py_include)
185167

186168
self.ensure_string_list('libraries')
187169
self.ensure_string_list('link_objects')

0 commit comments

Comments
 (0)