egg

buildout can't find pip packages for Plone

喜夏-厌秋 提交于 2019-12-11 06:24:19
问题 I'm trying to add add-ons to Plone through buildout but it can't find the packages. I've tried it in a virtualenv andd the system wide python I followed the set up on the Plone site Setup instructions Every add-on I try brings up the following error Installing instance. /home/a/Plone/zinstance/local/lib/python2.7/site-packages/pkg_resources/__init__.py:192: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with

How to create installer for mac osx

☆樱花仙子☆ 提交于 2019-12-11 06:01:22
问题 I am making an app in python, which is able to open different file types. This code in running fine on eclipse while passing filename which I want to open and configuration file as arguments respectively. Now I converted this into application by using py2app. So, the issue is how to deal with arguments, as different file types need to be open through app and this app also needs configuration file while processing. Is there any different methods available for making app which can be installed

top-level package handling with setuptools (or another python egg builder)

倾然丶 夕夏残阳落幕 提交于 2019-12-11 05:59:48
问题 I am writing a little python app. I want to be able to easily deploy the app. I know that python 2.6 will allow one to execute an egg directly if there is a main module at the egg's root. I actually have that working. The one kink is that when I try to use the argparse library, I cannot include the library in the egg without installing it into my source directory (or symlinking in the argparse.py into my source dir) since the argparse module is in the top-level package. If I install it into a

I cannot find setup.py in my OSX babel installation to import the cldr babel files, what am I doing wrong?

柔情痞子 提交于 2019-12-11 04:27:33
问题 I have been trying to use babel on my iMac (OSX Mavericks, I installed python and babel using MacPorts) but I get this error message : [...] writing PO template file to ./locale/messages.pot Traceback (most recent call last): File "/usr/local/bin/pybabel", line 8, in <module> load_entry_point('Babel==2.0-dev-20131218', 'console_scripts', 'pybabel')() File "/Library/Python/2.7/site-packages/Babel-2.0_dev_20131218-py2.7.egg/babel/messages/frontend.py", line 1151, in main return

Importing BitTorrent bencode module

。_饼干妹妹 提交于 2019-12-11 01:47:04
问题 I'm on Mac OS X 10.6. Python is 2.6.1. I've installed bencode module as sudo easy_install BitTorrent-bencode It appeared in site-packages /Library/Python/2.6/site-packages/BitTorrent_bencode-5.0.8-py2.6.egg But, how to import and use this module? >>> import bencode doesn't work... Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named bencode How to import modules from site-packages? How to recognize module name BitTorrent_bencode-5.0.8-py2.6.egg

Including direct dependency download links in setup.py

江枫思渺然 提交于 2019-12-10 23:32:39
问题 Can one specify direct download links for Python egg dependencies? I have Skype4Py as a dependency and easy_install seems to fail to download the file correctly from sourceforge.net (sourceforge.net issue). The resulting tar file is scrambled. https://github.com/stigkj/Skype4Py/issues/3 To work around this issue I'd like to specify a direct download link for Skype4Py archive to avoid the issues with sourceforge.net. 回答1: First of all, I highly recommend using pip instead of easy_install as it

pkg_resources.resource_filename is not extracting files

点点圈 提交于 2019-12-10 19:32:17
问题 I want to package a project that contains (and uses) template html files and distribuite it as an egg. Since I’m using tornadoweb, which requires file paths to point to html files, I can’t access the resources via stream and I really need the html files to be extracted when my program is running. I’m having a look at setuptools and according to resource_filename docs (bold is mine): Sometimes, it is not sufficient to access a resource in string or stream form, and a true filesystem filename

Can I create a single egg for multiple versions of python?

眉间皱痕 提交于 2019-12-10 16:59:17
问题 We have a local system which runs via a series of eggs. At the moment this means everyone must have a copy of Python 2.5 installed. Is it possible to create an egg which can be used by Python 2.5, 2.6, and 2.7 (ideally also any later versions)? Obviously, the python code will have to run under all three versions. Equally obviously, this egg can't contain any C extensions. Slightly less obviously, the egg must contain the python source (.py) files, and not the .pyc files. Also, I know we could

Disadvantage of Python eggs?

岁酱吖の 提交于 2019-12-10 04:32:56
问题 Are there any disadvantages about using eggs through easy-install compared to the "traditional" packages/modules/libs? 回答1: 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

Why does pip fail when installing local egg repository?

喜欢而已 提交于 2019-12-09 08:42:04
问题 I am working on Windows 7.I have created a python egg using distutils. Now I try to install this egg in a virtual environment using pip 1.0.2 using the following command: Then I create a virtual environment myVirtualEnv I activate it using activate.bat then execute the following command: pip install path_to_my_local_folder#eggName This creates a copy of my egg in my myVirtualEnv\build directory but I have the following error: IOError: [Errno 2] No such file or directory: path_of_my_virtualEnv