<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 1, 2014 at 5:25 AM, Daniel Liew <span dir="ltr"><<a href="mailto:daniel.liew@imperial.ac.uk" target="_blank">daniel.liew@imperial.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Konstantin,<br>
<div class=""><br>
<br>
>> I find the llvm-lit tool incredibly useful for other to setup a git<br>
>> mirror that mirrors only stuff in utils/lit which I could then use as<br>
>> a git submodule in other projects I work on. The rationale for doing<br>
>> this is that that cloning the llvm git repository is wasteful if I<br>
>> only want llvm-lit.<br>
<br>
</div>Oops. There was a typo there. That should of said.<br>
<br>
"I find the llvm-lit tool incredibly useful for other non-LLVM<br>
projects. I'd like to setup a git mirror that only mirrors stuff in<br>
<div class="">utils/lit which I could then use as a git submodule in other<br>
</div>projects".<br>
<div class=""><br>
> Are you sure you really need git, or you just want to install last stable<br>
> version? If the latter, run `pip install lit` to install it system-wide.<br>
><br>
> <a href="https://pypi.python.org/pypi/lit/0.2.0" target="_blank">https://pypi.python.org/pypi/lit/0.2.0</a><br>
<br>
</div>Git isn't essential. I didn't know that llvm-lit was in pypi. It seems<br>
that this version is quite out of date though. My lit.site.cfg files<br>
work with upstream llvm-lit and when I try to use lit from pypi, I get<br>
th<br>
<br>
> --<br>
> Regards, Konstantin<br>
<br>
<br>
Hi,<br>
<br>
Thanks for the reply.<br>
<br>
I just noticed there was a typo in my last e-mail. That should of said<br>
"I find the llvm-lit tool incredibly useful for other non-LLVM<br>
projects. I'd like to setup a git mirror that only mirrors stuff in<br>
utils/lit which I could then use as a git submodule".<br>
<div class=""><br>
> Are you sure you really need git, or you just want to install last stable<br>
> version? If the latter, run `pip install lit` to install it system-wide.<br>
><br>
> <a href="https://pypi.python.org/pypi/lit/0.2.0" target="_blank">https://pypi.python.org/pypi/lit/0.2.0</a><br>
<br>
</div>Thanks. I didn't realise llvm-lit was in pypi, this is probably a<br>
better solution. It doesn't seem this version has been updated in a<br>
while though. I've been using upstream llvm-lit and when I try to use<br>
lit from pip I get the following error message when it tries to load<br>
my lit.site.cfg file.<br>
<br>
```<br>
Traceback (most recent call last):<br>
File "/home/dan/pythonvenv/bin/lit", line 9, in <module><br>
load_entry_point('lit==0.2.0', 'console_scripts', 'lit')()<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/main.py",<br>
line 522, in main<br>
testSuiteCache, localConfigCache)[1])<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/main.py",<br>
line 230, in getTests<br>
ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/main.py",<br>
line 199, in getTestSuite<br>
ts, relative = search(item)<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/main.py",<br>
line 183, in search<br>
cache[path] = res = search1(path)<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/main.py",<br>
line 174, in search1<br>
cfg = TestingConfig.frompath(cfgpath, None, litConfig, mustExist = True)<br>
File "/home/dan/pythonvenv/local/lib/python2.7/site-packages/lit/TestingConfig.py",<br>
line 61, in frompath<br>
exec f in cfg_globals<br>
File "/home/dan/dev/OutputCheck/tests/lit.site.cfg", line 1, in <module><br>
import lit.formats<br>
ImportError: No module named formats<br>
```<br>
<br>
@Daniel Dunbar: Any chance of updating the pypi lit package to<br>
upstream llvm-lit?<br></blockquote><div><br></div><div>Yeah, thats a good idea. I'll put this on my TODO list.</div><div><br></div><div>Towards your original question, I agree that using the Python lit package is probably the right way to go for people who want to use 'lit' on non-LLVM projects.</div>
<div><br></div><div> - Daniel</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
Dan<br>
</blockquote></div><br></div></div>