aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-07-07 18:10:02 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-07-07 18:10:02 +0200
commita4f8d8fba9c3993b5afbd83cc4b02cded203918b (patch)
tree92bc7e8ed20613315a17d14ebba4597fcf17f16f /setup.py
parentd169177b19658f115db80d62c91593ca19bb5ee6 (diff)
downloadexternal_python_setuptools-a4f8d8fba9c3993b5afbd83cc4b02cded203918b.tar.gz
external_python_setuptools-a4f8d8fba9c3993b5afbd83cc4b02cded203918b.tar.bz2
external_python_setuptools-a4f8d8fba9c3993b5afbd83cc4b02cded203918b.zip
Issue 294: Allow to run setup.py from another directory.
--HG-- branch : distribute extra : rebase_source : 9219c67abb5791b37822fd67c224a537628c54b9
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index c4351b1e..4294f3f9 100755
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,9 @@ import sys
import os
import textwrap
+# Allow to run setup.py from another directory.
+os.chdir(os.path.dirname(os.path.abspath(__file__)))
+
src_root = None
if sys.version_info >= (3,):
tmp_src = os.path.join("build", "src")