aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index b85d7d03..9975753d 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -89,8 +89,10 @@ class sdist(sdist_add_defaults, orig.sdist):
"""
In a context, remove and restore os.link if it exists
"""
+
class NoValue:
pass
+
orig_val = getattr(os, 'link', NoValue)
try:
del os.link