egg

How to include and use .eggs/pkg_resources within a project directory targeting python 2.5.1

非 Y 不嫁゛ 提交于 2019-12-06 03:49:04
I have python .egg files that are stored in a relative location to some .py code. The problem is, I am targeting python 2.5.1 computers which require my project be self contained in a folder (hundreds of thousands of OLPC XO 8.2.1 release laptops running Sugar). This means I cannot just ./ez_install to perform a system-wide setuptools/pkg_resources installation. Example directory structure: My Application/ My Application/library1.egg My Application/libs/library2.egg My Application/test.py I am wondering how best to import and use library1 and library2 from within test.py with no pkg_resources

How to prevent setuptools install package as an .egg

跟風遠走 提交于 2019-12-05 21:01:46
问题 For example, installing IPython on Linux (where setuptools is not installed) I've got IPython installed in site-packages\IPython . Installing IPython on Windows (where IPython requires setuptools), after executing the same command python setup.py install I get IPython installed in site-packages\ipython-0.13.2-py2.7.egg\IPython Is there a way to install the module "old way" i.e. into site-packages\IPython ? 回答1: I've discovered that python setup.py install --old-and-unmanageable does the job,

“pipenv requires an #egg fragment for version controlled dependencies” warning when installing the BlueJeans meeting API client

余生长醉 提交于 2019-12-05 13:01:25
问题 Adapting the instructions from https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python#pip-install, in a pipenv shell I'm trying to run pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo However, I'm getting the following error message: ⠋WARNING: pipenv requires an #egg fragment for version controlled dependencies. Please install remote dependency in the form git+https://github.com/bluejeans/api-rest-meetings.git#egg=. Here is the full command and

Python Packaging Documentation

纵然是瞬间 提交于 2019-12-05 11:06:04
Where is the current reference for packaging python modules with Python 2.x? http://guide.python-distribute.org/ The Hitchhiker’s Guide to Packaging (last update from july 2010) http://docs.python.org/2.7/distutils/index.html distutils: Distributing Python Modules https://python-packaging-user-guide.readthedocs.org/en/latest/ Python Packaging User Guide (fork of hitchhiker guide, alive) I found the above versions. Which one should I follow? My modules are simple. Some Python files, some Python scripts and some templates (django). borntyping The setuptools documentation is (probably) the

pip install matplotlib fails: 'cannot build package freetype; “python setup.py egg_info” failed with error code 1'

核能气质少年 提交于 2019-12-05 06:20:24
I want to use matplotlib.pyplot. I can't because altoidnerd@LEPTON:~/ $ pip install matplotlib is failing on ubuntu 14 giving an egg_info error, and warning "cannot build package freetype" * The following required packages can not be built: * freetype ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8UvQcW/matplotlib But altoidnerd@LEPTON:~/$ dpkg -L libfreetype6 /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1 /usr/share /usr/share/doc /usr/share/doc/libfreetype6 /usr/share/doc

What is PasteDeploy and do I need to learn it if Eggs in Python are considered gone?

泄露秘密 提交于 2019-12-05 05:40:41
I'm quite new to Python. I've downloaded the Pyramid Framework and have been trying to understand it. It uses many separate tools for its work. For example some PasteDeploy . I tried to read PasteDeploy 's manual but can't understand anything. There is almost no valuable examples and explanation. Just syntax. All I understood is that it uses .egg format everywhere. It is based on .egg format: [composite:main] use = egg:Paste#urlmap [app:home] use = egg:Paste#static [app:blogapp] use = egg:BlogApp At the same time I found that .egg format is going to be thrown away from Python's package's

Disadvantage of Python eggs?

我是研究僧i 提交于 2019-12-05 05:07:34
Are there any disadvantages about using eggs through easy-install compared to the "traditional" packages/modules/libs? One (potential) disadvantage is that eggs are zipped by default unless zip_safe=False is set in their setup() function in setup.py . If an egg is zipped, you can't get at the files in it (without unzipping it, obviously). If the module itself uses non-source files (such as templates) it will probably specify zip_safe=False , but another consequence is that you cannot effectively step into zipped modules using pdb , the Python debugger. That is, you can, but you won't be able

pip: Why sometimes installed as egg, sometimes installed as files

醉酒当歌 提交于 2019-12-04 18:39:36
问题 Where can you force pip to install as "flat" and not as "egg". For me it seems random. Sometimes it gets installed as egg, sometime as flat. pip help install shows only an option --egg which forces an egg installation. But I could not find a --flat option. The packages are from an own pypiserver, and uploaded like this: python setup.py sdist upload -r internal Output of pip during install: Best match: foo-client 2015.2 Downloading https://installserver:40443/pypi/packages/foo_client-2015.2

What is a good computer vision library for Python that will allow me to me to find faces in a Flash/HTML5 video?

陌路散爱 提交于 2019-12-04 17:34:00
I need to develop a script utilizing computer vision that will: Scan all frames of an Flash/HTML5 video for people's faces Identify the video frames that shows the faces looking directly at the camera Crop the face in a perfect square Copy the cropped face to a .PNG file Any recommendations for a Python computer vision library that could help me develop this script? jilles de wit As jonesy said opencv is your best bet for facedetection "out of the box". To use flash video as imput you'd need something that will allow you to read .flv (flash video) files that you can connect to opencv. I haven

How to include a python .egg library that is in a subdirectory (relative location)?

大兔子大兔子 提交于 2019-12-04 16:16:33
问题 How do you import python .egg files that are stored in a relative location to the .py code? For example, My Application/ My Application/library1.egg My Application/libs/library2.egg My Application/test.py How do you import and use library1 and library2 from within test.py, while leaving the .egg libraries in-place? 回答1: An .egg is just a .zip file that acts like a directory from which you can import stuff. You can use the PYTHONPATH variable to add the .egg to your path, or append a directory