我找不到使用 pip 将本地目录安装为 python 包的正确方法。
(venv) C:\(...)>pip install . --no-index
Ignoring indexes: http://pypi.python.org/simple/
Unpacking c:\users\fsantos\desktop\biskates.com\biskates\forks\django-pipeline
Running setup.py egg_info for package from file:///(...)%5Cforks%5Cdjango-pipeline
Installing collected packages: django-pipeline
Running setup.py install for django-pipeline
Successfully installed django-pipeline
Cleaning up...
(venv) C:\(...)>cd ..
(venv) C:\(...)>python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pipeline
>>> pipeline.__file__
'C:\\(...)site-packages\\pipeline\\__init__.py'
>>>
如您所见, pip 刚刚将包复制到站点包。我怎样才能避免这种情况,并直接从其源文件夹中使用该包?
我正在尝试将 django-pipeline 集成到我的 Django 项目中,但我想首先添加对 Django 1.4 的支持,所以我分叉并克隆了我的 fork。