-
-
Save aodag/a704f4621cfb84eb7c54 to your computer and use it in GitHub Desktop.
virtualenvなしで vendorディレクトリをパッケージインストール先にして実行してみる例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install -t vendor webob webdispatch jinja2 | |
Collecting webob | |
Downloading WebOb-1.4.tar.gz (633kB) | |
100% |################################| 634kB 5.5MB/s | |
Collecting webdispatch | |
Downloading WebDispatch-1.3-py2.py3-none-any.whl | |
Collecting jinja2 | |
Downloading Jinja2-2.7.3.tar.gz (378kB) | |
100% |################################| 380kB 6.0MB/s | |
Collecting markupsafe (from jinja2) | |
Downloading MarkupSafe-0.23.tar.gz | |
Installing collected packages: markupsafe, jinja2, webdispatch, webob | |
Running setup.py install for markupsafe | |
building 'markupsafe._speedups' extension | |
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o | |
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so | |
Running setup.py install for jinja2 | |
Running setup.py install for webob | |
Successfully installed jinja2-2.7.2 markupsafe-0.18 webdispatch webob | |
$ ls vendor/ | |
Jinja2-2.7.3.egg-info WebDispatch-1.3.dist-info jinja2 webdispatch | |
MarkupSafe-0.23.egg-info WebOb-1.4.egg-info markupsafe webob | |
$ python | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import webob | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ImportError: No module named webob | |
>>> | |
$ PYTHONPATH=vendor python | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import webob | |
>>> webob | |
<module 'webob' from '/home/aodag/works/wsgi/quick/vendor/webob/__init__.pyc'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment