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 79c60cb

Browse filesBrowse files
committed
Merge pull request #1 from mdboom/symlinks
Create the symlink without using chdir.
2 parents a2b935c + 5763d5a commit 79c60cb
Copy full SHA for 79c60cb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed

‎setupegg.py

Copy file name to clipboardExpand all lines: setupegg.py
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
# Setupegg assumes the install tree and source tree are exactly the same. Since
1010
# this is not the case, symlink the correct dateutil dir depending on which
1111
# version of python is used
12-
os.chdir('lib')
13-
if not os.path.isdir('dateutil'):
12+
if not os.path.isdir('lib/dateutil'):
1413
if sys.version_info[0] >= 3:
15-
os.symlink('dateutil_py3', 'dateutil')
14+
os.symlink('dateutil_py3', 'lib/dateutil')
1615
else:
17-
os.symlink('dateutil_py2', 'dateutil')
18-
os.chdir('..')
16+
os.symlink('dateutil_py2', 'lib/dateutil')
1917

2018
execfile('setup.py',
2119
{'additional_params' :

0 commit comments

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