egg

How do I manage third-party Python libraries with Google App Engine? (virtualenv? pip?)

与世无争的帅哥 提交于 2019-12-27 10:43:46
问题 What's the best strategy for managing third-party Python libraries with Google App Engine? Say I want to use Flask, a webapp framework. A blog entry says to do this, which doesn't seem right: $ cd /tmp/ $ wget http://pypi.python.org/packages/source/F/Flask/Flask-0.6.1.tar.gz $ tar zxf Flask-0.6.1.tar.gz $ cp -r Flask-0.6.1/flask ~/path/to/project/ (... repeat for other packages ...) There must be a better way to manage third-party code, especially if I want to track versions, test upgrades or

Celery error: “No module named billiard.forking” - how to diagnose?

删除回忆录丶 提交于 2019-12-25 05:05:32
问题 I have no idea where to start diagnosing and fixing this: $ bin/django celeryd -l DEBUG -v 3 -------------- celery@lucid32 v3.0.3 (Chiastic Slide) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: django://localhost// - ** ---------- . app: default:0x8b0aa4c (djcelery.loaders.DjangoLoader) - ** ---------- . concurrency: 1 (processes) - ** ---------- . events: OFF (enable -E to monitor this worker) - ** ---------- - *** --- * --- [Queues] -- ******* ---- . celery:

egg git interface for emacs, commit message empty

老子叫甜甜 提交于 2019-12-24 04:59:09
问题 I'm using egg (emacs got git) as git interface in emacs. Whenever I try to achieve a commit --amend, I receive a "GIT-COMMIT-AMEND> Aborting commit due to empty commit message". This is what i do: C-u C-x v c Then the commit buffer appears, with the message of my previous commit. Then upon C-c C-c I get the message stated above: empty commit message. I think I've had this behaviour with regular commits (as in not amend) before, but can't remember or find how I solved it. I tried editing the

How to install a module as an egg under IronPython?

早过忘川 提交于 2019-12-24 01:19:33
问题 Maybe, it is a stupid question but I can't use python eggs with IronPython. I would like to test with IronPython 2.0.2 one module that I've developped. This modules is pure python. It works ok with python 2.6 and is installed as a python egg thanks to setuptools. I thought that the process for installing my module under IronPython was very similar but unfortunately it doesn't work. I can't install setuptools-0.6c9 with IronPython (Crash of IronPython). I've tried to copy manually my egg under

How to use SQLAlchemy reflection with Sybase? [answer: turns out it's not supported!]

久未见 提交于 2019-12-24 01:02:06
问题 I'm trying to learn more about the .egg concept and overriding methods in Python. Here's the error message I'm receiving: Traceback (most recent call last): File "C:/local/work/scripts/plmr/plmr_db.py", line 42, in <module> insp.reflecttable(reo_daily_table, column_list) File "build\bdist.win32\egg\sqlalchemy\engine\reflection.py", line 370, in reflecttable File "build\bdist.win32\egg\sqlalchemy\engine\reflection.py", line 223, in get_columns File "build\bdist.win32\egg\sqlalchemy\engine\base

Exclude single source file from python bdist_egg or bdist_wheel

时间秒杀一切 提交于 2019-12-22 10:07:24
问题 Background: I have one source file which is responsible for security. In there are magic keys and specific algorithms. Is it possible to remove a this single source file from a python egg or wheel package? I already accomplished to ship only binarys with the the egg command. python setup.py bdist_egg --exclude-source-files Edit Project structure: ├── setup.py ├── src | ├── __init__.py | ├── file1.py | ├── file2.py | ├── file_to_exclude.py Thanks for your help! 回答1: Unfortunately, neither

Python import library from tar.gz?

☆樱花仙子☆ 提交于 2019-12-21 17:21:54
问题 I am working on a box which I don't have root access. However, there is a folder /share which would be accessed for everyone to read and write. I want to figure out a way to put python libraries so that everyone could access and use them. I figured out that I can put the egg file in the /share/pythonLib folder and in the python script. import sys sys.path.append("/share/pythonLib/foo.egg") import foo and it would work for everyone, however, I am not sure every library has egg version. For

What is the difference between an 'sdist' .tar.gz distribution and an python egg?

一笑奈何 提交于 2019-12-20 08:48:32
问题 I am a bit confused. There seem to be two different kind of Python packages, source distributions (setup.py sdist) and egg distributions (setup.py bdist_egg). Both seem to be just archives with the same data, the python source files. One difference is that pip , the most recommended package manager, is not able to install eggs. What is the difference between the two and what is 'the' way to do distribute my packages? (Note, I am not wanting to distribute my packages through PyPI, but I want

How to update a file in python egg

雨燕双飞 提交于 2019-12-19 19:42:13
问题 We are using trac. In our setup we have a problem that is solved in repository. So I got the fixed file commit_update.py from the repository and I need to place it into Trac-0.12-py2.6.egg. As egg is just a ziped filed I just unziped it, changed the file and ziped again. After restarting trac, I've got a an error message: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory The

How to update a file in python egg

自闭症网瘾萝莉.ら 提交于 2019-12-19 19:41:33
问题 We are using trac. In our setup we have a problem that is solved in repository. So I got the fixed file commit_update.py from the repository and I need to place it into Trac-0.12-py2.6.egg. As egg is just a ziped filed I just unziped it, changed the file and ziped again. After restarting trac, I've got a an error message: ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory The