use without requiring installation via easy_install

110 views
Skip to first unread message

jmatthewsr

unread,
Dec 20, 2011, 3:53:47 PM12/20/11
to Closure Linter Discuss
Hi. Is it possible to use gjslint without running easy_install? Is
it possible to just store the python files in a local directory and
run a python file to execute gjslint? It would be nice, and even
required in some scenarios, if gjslint didn't require a python install
to use it. It's also a road block in getting developers to adopt it
when this install method isn't supported by a companies build
infrastracture.

thanks.

justin

Nathan Naze

unread,
Dec 20, 2011, 4:05:31 PM12/20/11
to closure-lin...@googlegroups.com
Everything is running from relative imports, so one shouldn't need to install.
python path/to/gjslint.py ... should work fine.  Let me know if it doesn't.
Nathan

esbjorn

unread,
Dec 21, 2011, 5:23:13 AM12/21/11
to Closure Linter Discuss
It does not really work out of the box. I get:
Traceback (most recent call last):
File "./gjslint.py", line 42, in <module>
from closure_linter import checker
ImportError: No module named closure_linter

But if I copy the gjslint.py file one directory up, so I have the
gjslint.py and closure_linter/ side by side, it works!

esbjörn
Reply all
Reply to author
Forward
0 new messages