Hello,
I have updated PEP 376, mainly with Phillip's feedback, and changed the API section so it looks like the current prototype.
- PEP : http://svn.python.org/view/peps/trunk/pep-0376.txt?view=markup - prototype code : http://bitbucket.org/tarek/pep376/src/tip/pkgutil.py
I'll wait for a new round of feedbacks, Thanks !
Tarek
On Mon, May 25, 2009 at 12:29:44PM +0200, Tarek Ziadé wrote:
- prototype code : http://bitbucket.org/tarek/pep376/src/tip/pkgutil.py
def disable_cache(): global _CACHE_ENABLED _CACHE_ENABLED = True
/me thinks that might not be right...
Not sure if this is supposed to work in a situation where multiple threads are using this API at the same time. But for that case the simple cache management might be too limiting (enable and disable are global) and refactoring the functions which use the cache into an object that can be instantiated with a flag whether to use the global cache or not might be better.
Regards Floris
On Mon, May 25, 2009 at 11:42 PM, Floris Bruynooghe floris.bruynooghe@gmail.com wrote:
Not sure if this is supposed to work in a situation where multiple threads are using this API at the same time. But for that case the simple cache management might be too limiting (enable and disable are global) and refactoring the functions which use the cache into an object that can be instantiated with a flag whether to use the global cache or not might be better.
Right, I havn't thought about that. While I don't have a clear idea on the multi-threading aspect yet, I think Phillip's proposal on having Directories might help a lot
Regards Tarek
Hi All,
I've been doing some internal testing on my package manager gui and with both pip and easy_install and I want to test more...
Under windows... what I notice is that some packages install under easy_install and other not under pip.. and also vice versa (I think...)
So what I want to do next is to actually test that I can install/deinstall every package on pypi using either pip or easy_install on both ubuntu and windows under a few few different versions of python.. say 2.3, 2.5 and 2.6
Is there anybody that's interested in helping? or receiving the results of these tests?
David
On Thu, May 28, 2009 at 7:19 AM, David Lyon david.lyon@preisshare.net wrote:
Hi All,
I've been doing some internal testing on my package manager gui and with both pip and easy_install and I want to test more...
Under windows... what I notice is that some packages install under easy_install and other not under pip.. and also vice versa (I think...)
So what I want to do next is to actually test that I can install/deinstall every package on pypi using either pip or easy_install on both ubuntu and windows under a few few different versions of python.. say 2.3, 2.5 and 2.6
Is there anybody that's interested in helping? or receiving the results of these tests?
I am interested in receiving your results.
Notice that I have started a similar project to prevent regressions in Distutils.
I am running "smoke test" to see if the current trunk is able to create the same releases than previous Python versions.
It checkout a project and run "python setup.py sdist" with various Python interpreter, then compare the output.
Right now I am running this only on numpy and a list of trusted tarballs for security reasons.
It's here : http://buildbot.ziade.org/waterfall
Tarek
David
Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
On Thu, 28 May 2009 12:21:16 +0200, Tarek Ziadé ziade.tarek@gmail.com wrote:
I am interested in receiving your results.
No problem...
Well I'll keep you posted...
There's a few packages to download.. so it won't be ready by dinner...
It's here : http://buildbot.ziade.org/waterfall
Yes.. looks good....
I was planning to use buildbot also...
It's a good tool
David
Hi All,
What's the distutils api call that I need to make to install an .egg.
At the moment I'm using easy_install and the command line but under vista it requires escalated privilages.
There must be a "batteries-included" way within python either in setuptools or distutils to install an .EGG from pypi? That is without telling the users that they must download either easy_install or pip before they can do the .egg install.
Thanks in advance
David
On Thu, 28 May 2009 12:21:16 +0200, Tarek Ziadé ziade.tarek@gmail.com wrote:
I am interested in receiving your results.
First test... install buildbot from pypi on Python 2.6 windows:
=================================================================== Easy Install Running installer ... C:\Python26\scripts\easy_install.exe buildbot Searching for buildbot Reading http://pypi.python.org/simple/buildbot/
Reading http://buildbot.sourceforge.net/
Reading http://buildbot.net/ Reading https://sourceforge.net/project/showfiles.php?group_id=73177&package_id=...
Best match: buildbot 0.7.10p1 Downloading http://pypi.python.org/packages/source/b/buildbot/buildbot-0.7.10p1.zip#md5=...
ERRORS: build\bdist.win32\egg\buildbot\ec2buildslave.py:90: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert (aws_id_file_path is None, build\bdist.win32\egg\buildbot\ec2buildslave.py:93: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert (secret_identifier is not None,
Processing buildbot-0.7.10p1.zip Running buildbot-0.7.10p1\setup.py -q bdist_egg --dist-dir c:\docume~1\david\locals~1\temp\easy_install-fokujq\buildbot-0.7.10p1\egg-dist-tmp-hdicbb zip_safe flag not set; analyzing archive contents... buildbot.clients.debug: module references __file__ buildbot.scripts.runner: module references __file__ buildbot.status.web.baseweb: module references __file__ buildbot.status.web.grid: module references __file__ buildbot.test.runutils: module references __file__ buildbot.test.test_maildir: module references __file__ buildbot.test.test_mailparse: module references __file__ buildbot.test.test_shell: module references __file__ buildbot.test.test_slavecommand: module references __file__ No eggs found in c:\docume~1\david\locals~1\temp\easy_install-fokujq\buildbot-0.7.10p1\egg-dist-tmp-hdicbb (setup script problem?)
===================================================================
On Thursday 28 May 2009 12:09:41 David Lyon wrote:
On Thu, 28 May 2009 12:21:16 +0200, Tarek Ziadé ziade.tarek@gmail.com
wrote:
I am interested in receiving your results.
First test... install buildbot from pypi on Python 2.6 windows:
I'm working on these issues using the susebuild server as continuous integration build server.
There's a python intepreter based on a recent svn source usable installed under /opt:
http://download.opensuse.org/repositories/home:/cavallo71:/python-opt/
I hope this helps.
I'm about to complete a complete continuous build regression test based on an automated build using the suse build server including unittest based smoke tests.
It should be ready by the end of today. Regards, Antonio