diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-08-13 19:08:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-13 19:08:48 +0000 |
commit | 13e26da155d245e0d1e55fb8dc9f586426112fc2 (patch) | |
tree | 6fe10299f476d2074f58ebbac1ce72aef06eabd9 /utils/lit | |
parent | 3add0679d24a00c4a585809c6ce54486f6a458f5 (diff) | |
download | external_llvm-13e26da155d245e0d1e55fb8dc9f586426112fc2.zip external_llvm-13e26da155d245e0d1e55fb8dc9f586426112fc2.tar.gz external_llvm-13e26da155d245e0d1e55fb8dc9f586426112fc2.tar.bz2 |
[lit] Support use of setup.py from other directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/setup.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/lit/setup.py b/utils/lit/setup.py index a94e6ea..10de6bb 100644 --- a/utils/lit/setup.py +++ b/utils/lit/setup.py @@ -1,7 +1,14 @@ import lit +import os -# FIXME: Support distutils? from setuptools import setup, find_packages + +# setuptools expects to be invoked from within the directory of setup.py, but it +# is nice to allow: +# python path/to/setup.py install +# to work (for scripts, etc.) +os.chdir(os.path.dirname(os.path.abspath(__file__))) + setup( name = "lit", version = lit.__version__, |