Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da4a603

Browse filesBrowse files
committed
BLD: Find tcl/tk on conda windows
1 parent 5ac3044 commit da4a603
Copy full SHA for da4a603

File tree

Expand file treeCollapse file tree

1 file changed

+14
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-6
lines changed

‎setupext.py

Copy file name to clipboardExpand all lines: setupext.py
+14-6Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,14 +1594,22 @@ def hardcoded_tcl_config(self):
15941594

15951595
def add_flags(self, ext):
15961596
if sys.platform == 'win32':
1597-
major, minor1, minor2, s, tmp = sys.version_info
1598-
if sys.version_info[0:2] < (3, 4):
1599-
ext.include_dirs.extend(['win32_static/include/tcl85'])
1597+
if os.getenv('CONDA_DEFAULT_ENV'):
1598+
# We are in conda and conda builds against tcl85 for all versions
1599+
# includes are directly in the conda\library\include dir and
1600+
# libs in DLL or lib
1601+
ext.include_dirs.extend(['include'])
16001602
ext.libraries.extend(['tk85', 'tcl85'])
1603+
ext.library_dirs.extend(['dlls']) # or lib?
16011604
else:
1602-
ext.include_dirs.extend(['win32_static/include/tcl86'])
1603-
ext.libraries.extend(['tk86t', 'tcl86t'])
1604-
ext.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
1605+
major, minor1, minor2, s, tmp = sys.version_info
1606+
if sys.version_info[0:2] < (3, 4):
1607+
ext.include_dirs.extend(['win32_static/include/tcl85'])
1608+
ext.libraries.extend(['tk85', 'tcl85'])
1609+
else:
1610+
ext.include_dirs.extend(['win32_static/include/tcl86'])
1611+
ext.libraries.extend(['tk86t', 'tcl86t'])
1612+
ext.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
16051613

16061614
elif sys.platform == 'darwin':
16071615
# this config section lifted directly from Imaging - thanks to

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.