[issue45150] Add a file_digest() function in hashlib

2022-03-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: @Aur, go for it, I started to implement it and got lost into the details for each backend.. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45150] Add a file_digest() function in hashlib

2021-09-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: Hey Christian, I hope things are well for you! Thanks for all the precious feedback, I'll rework the patch accordingly -- ___ Python tracker <https://bugs.python.org/issue45

[issue45150] Add a file_digest() function in hashlib

2021-09-09 Thread Tarek Ziadé
New submission from Tarek Ziadé : I am proposing the addition of a very simple helper to return the hash of a file. -- assignee: tarek components: Library (Lib) messages: 401457 nosy: tarek priority: normal severity: normal status: open title: Add a file_digest() function in hashlib

[issue30479] improve asyncio debugging

2017-05-26 Thread Tarek Ziadé
New submission from Tarek Ziadé: This is a very useful trick to understand why the loop cleanup generates a lot of "Exception ignored in: " https://github.com/python/asyncio/issues/423#issuecomment-268882753 Could we consider including it in Task.__del__ ? -- component

[issue29663] Make collections.deque json serializable

2017-02-27 Thread Tarek Ziadé
New submission from Tarek Ziadé: collections.deque could be serialized in JSON as a simple array. The only thing we can lose in the process is the maxlen value, but I think it's a decent behaviour to ignore it when encoding and to set it to None when decoding. -- components: Library

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: If os.urandom() doesn't fail, something else will fail soon after. the random pool can be exhausted, but this is not soon after I think. In Linux and Mac OS X, ulimit -n defaults to 512 and 256. It's very easy to reach that limit if you write a web app

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: Can tarek tell us more about its usecases: is he directly calling os.urandom() or does he use the random module? How many threads? I was using ws4py inside greenlets. ws4py uses os.urandom() to generate some keys. So one single thread, many greenlets

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: What does high load mean? a web app with a few hundreds concurrent requests. If you mean many concurrent threads, then you should probably go for the random module, no? I use greenlets. But, I don't know - are you suggesting os.urandom() should be marked

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: Well, even with greenlets, I assume you're using at least one FD (socket) per client, no? So you can get EMFILE on socket() just as on os.urandom(). I do many calls on urandom() so that's the FD bottleneck. So os.urandom() isn't your biggest problem here

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: Unless you're doing many calls *in parallel* it's unlikely to be a bottleneck. That's what we're saying since message 1. Antoine, allo quoi! :) os.urandom() is a convenience function, it doesn't have to be extremely optimized I suggest that you tell

[issue18756] os.urandom() fails under high load

2013-08-16 Thread Tarek Ziadé
Tarek Ziadé added the comment: So please explain me :-). it sounded like you did not really want any explanation os.urandom() can only be called by one thread/greenlet at a time. do you mean that we cannot have two parallel calls of that function ? e.g. two opened FD at the same time

Re: Daemonizing an application.

2013-02-27 Thread Tarek Ziadé
independantly from the transport then choose which transport fits a situation: TPC (then the ctl can be on another box), IPC or even ITC That also means your ctl part can be portable to any platform Cheers Tarek -- Tarek Ziadé · http://ziade.org · @tarek_ziade -- http://mail.python.org/mailman

Re: Daemonizing an application.

2013-02-27 Thread Tarek Ziadé
s/TPC/TCP ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1 b=2 Any one help me in understanding how to make sure that config file to have a structure like this and

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote: yes but it is not only for one structure like above there will be many sections like that I'd use yaml or json then... -- http://mail.python.org/mailman/listinfo/python-list

Re: section with in a section config file and reading that config file

2012-10-19 Thread Tarek Ziadé
On 10/19/12 11:29 PM, Steven D'Aprano wrote: On Fri, 19 Oct 2012 12:09:53 +0200, Tarek Ziadé wrote: On 10/19/12 11:51 AM, kampy wrote: hi all, my requirement is to have section with in a section in config parameters ex: [AAA] [BBB] a=1 b=1 [CCC] a=1 b=2

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/25/12 3:21 PM, Andriy Kornatskyy wrote: Tarek, With all respect, running benchmark on something that has sleeps, etc is pretty far from real world use case. So I went a little bit different way. That's not a good summary of what the function does. It does not just sleep. It does some I/O

Re: Fastest web framework

2012-09-26 Thread Tarek Ziadé
On 9/26/12 11:26 AM, Andriy Kornatskyy wrote: Tarek, Thank you for the response back. Yes, your idea is pretty clear to me. The point is that higher workload you put in your application business logic, repository, backend, whatever... less you will see in final results comparison. This is

Re: Fastest web framework

2012-09-24 Thread Tarek Ziadé
On 9/23/12 11:19 AM, Andriy Kornatskyy wrote: I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle, django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find it interesting:

Re: portable way of locating an executable (like which)

2012-09-21 Thread Tarek Ziadé
On 9/21/12 1:59 AM, Nobody wrote: On Thu, 20 Sep 2012 23:06:46 +0200, Gelonida N wrote: I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Note that which attempts to emulate the behaviour of execvp()

Re: Development mode

2012-09-21 Thread Tarek Ziadé
On 9/20/12 9:02 PM, py_lrnr wrote: I am new to python and I have come across the following command and its description: Now to be able to run the project you will need to install it and its dependencies. python setup.py develop I looked up what the 'develop' argument does and found: Extra

Re: Does python have built command for package skeleton creation?

2012-09-21 Thread Tarek Ziadé
On 9/21/12 12:07 PM, xliiv wrote: Like the topic.. . I found this: http://learnpythonthehardway.org/book/ex46.html it seems fine, but shouldn't be an interactive (with CLI API) script creating that? It's a lot of effort for common work. I can contribute but i have to know that i'm not

Re: Does python have built command for package skeleton creation?

2012-09-21 Thread Tarek Ziadé
On 9/21/12 2:14 PM, xliiv wrote: Python Paste is probably what you are looking for - see http://lucasmanual.com/mywiki/PythonPaste for example It's a nice beast but: - it's not built in. Should it be? I think it should. You can suggest this to python-ideas but I really doubt you will get any

Re: Print Function

2012-09-21 Thread Tarek Ziadé
On 9/21/12 10:20 PM, gengyang...@gmail.com wrote: Hello , I am currently using Python 3.2.3 . WHen I use the print function by typing print Game Over , it mentions SyntaxError : invalid syntax . Any ideas on what the problem is and how to resolve it ? Thanks a lot . print was a

[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: We should keep sysconfig imo -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15147

network protocols

2012-06-13 Thread Tarek Ziadé
Hey I was surprised not to find any way to list all protocol names listed in /etc/protocols in Python We have socket.getprotobyname(NAME) But there's no way to get the list of names Any ideas if this is available in the stdlib somehwere ? Thx Tarek --

Re: network protocols

2012-06-13 Thread Tarek Ziadé
On 6/13/12 8:33 PM, Christian Heimes wrote: Am 13.06.2012 16:56, schrieb Christian Heimes: Am 13.06.2012 13:41, schrieb Tarek Ziadé: Hey I was surprised not to find any way to list all protocol names listed in /etc/protocols in Python We have socket.getprotobyname(NAME) But there's no way

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: the current code works as expected. Why not leaving it like this since your change seem to be comsetics only ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14967

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: can you give an example of a bad error ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14967

[issue14967] distutils2.utils.resolve_name cannot be implemented to give correct errors in all situations

2012-05-31 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - duplicate superseder: - Improve error reporting for packaging.util.resolve_name ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14967

Re: Proposal about naming conventions around packaging

2012-05-30 Thread Tarek Ziadé
On 5/30/12 6:59 PM, Benoît Bryon wrote: Hi, Hi Benoit you should post this to the distutils SIG Thank you Here is a proposal about naming conventions around packaging. Main question is: would you accept it as a PEP? Preliminary notes (not

[issue14830] pysetup fails on non-ascii filenames

2012-05-16 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: Pyramid contains this file: pyramid/tests/fixtures/static/h\xc3\xa9h\xc3\xa9.html and pysetup install pyramid chokes on it when creating the RECORD file, because the csv writer is given a wrong encoded value in util._write_record_file

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: distutils2 pysetup install is not working on py2 because the wrapper tries to pull func.f_name, which does not exist. -- assignee: tarek messages: 155463 nosy: eric.araujo, j1m, tarek priority: critical severity: normal status

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list

[issue14263] switch_index_if_fails fails on py2

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- components: +Distutils2 nosy: +alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: tarek components: Distutils2 nosy: alexis, eric.araujo, j1m, tarek priority: high severity: normal status: open title: can't install zope.event 3.4.0 type: behavior versions: Python 2.6, Python 2.7

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: it gets 3.4.1 for some reason -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264

[issue14268] _move_file is broken because of a bad mock

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: the mocked list_installed_files() returns a list of files instead of a list of (path, md5, path) -- assignee: tarek components: Distutils2 messages: 155483 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-03-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: see Bug 14263 also -- dependencies: +switch_index_if_fails fails on py2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14002

[issue14271] remove setup.py from the doc

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: http://docs.python.org/dev/packaging/index.html we still have setup.py pages here from the old doc -- assignee: eric.araujo components: Distutils2 messages: 155503 nosy: alexis, eric.araujo, j1m, tarek priority: normal severity

[issue14273] handler not properly initialized

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: $ ./pysetup dwqqwddwq No handlers could be found for logger distutils2 -- assignee: eric.araujo components: Distutils2 messages: 155509 nosy: alexis, eric.araujo, tarek priority: high severity: normal status: open title: handler

[issue14274] pysetup does not look at requires.txt

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: the installer needs to read requires.txt to build the deps list as well -- assignee: eric.araujo components: Distutils2 messages: 155513 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status: open title: pysetup

[issue14274] pysetup does not look at requires.txt

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: eric.araujo - alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14274 ___ ___ Python

[issue14073] allow per-thread atexit()

2012-02-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: @grahamd : sometimes you don't own the code that contains the thread, so I think it's better to be able to shutdown properly all flavors of threads. -- ___ Python tracker rep...@bugs.python.org

[issue14073] allow per-thread atexit()

2012-02-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Is there any good reason not to add this feature ? what would be the problem ? It does seem to be for the best, I don't see any drawbacks -- ___ Python tracker rep...@bugs.python.org http

[issue14073] allow per-thread atexit()

2012-02-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Mmm.. you did not say yet why you are against this feature, other than the lib *should not* use non-daemonized threads This sounds like the lib should not use feature X in Python because it will block everything And now we're proposing

[issue14073] allow per-thread atexit()

2012-02-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Add an actual example here at least of how with the proposed feature your code would then look. That's the part I am not sure at all about in fact. I don't know at all the internals in the shutdown process in Python and I was hoping

[issue14073] allow per-thread atexit()

2012-02-21 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: If you try to run the code below and stop it with ctrl+C, it will lock because atexit is never reached. Antoine proposed to add a way to have one atexit() per thread, so we can call some cleanup code when the app shuts down

[issue14073] allow per-thread atexit()

2012-02-21 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14073 ___ ___ Python-bugs-list

Cornice 0.6

2011-12-21 Thread Tarek Ziadé
, and return structured 400 responses. Check it out : - Documentation - http://packages.python.org/cornice - PyPI - http://pypi.python.org/pypi/cornice - Repository - https://github.com/mozilla-services/cornice We'd love feedback new contributors ! Cheers Tarek -- Tarek Ziadé | http

Cornice 0.4 released

2011-12-08 Thread Tarek Ziadé
! Cheers Tarek -- Tarek Ziadé | http://ziade.org -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue13150] Most of Python's startup time is sysconfig

2011-10-11 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I am curious: wouldn't be a way of keeping the compiled expressions in a static cache somewhere, so we would compile them just once and have both import time and runtime fast ? -- ___ Python

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Sounds good. Also, we should make the assumption that this hook might be deactivated or might fail. So it should not break the uninstallation in this case (a warning seem fine) -- ___ Python

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-27 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: We need to make it crystal clear in the doc: developers need to understand this behavior. Also, for a fatal error, I am -1 for activating this for an uninstall hook because we want to uninstall wathever happens in the hooks, +1 for others

[issue12347] add an extras in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: It occurs to me that our Crawler don't allow us to specify extra locations, like easy_install or pypi We should add that and let the crawler look up to these places because the index -- messages: 138439 nosy: alexis, tarek

[issue12347] add an extras in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12347 ___ ___ Python-bugs

[issue12348] case sensitivness in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: the PyPI server deals with the package names case issue: if you get webob, it'll find WebOb. That's not true for mirrors, so we need to fallback to the global index when webob is not found under simple/webob/, and look for the name

[issue12348] case sensitivness in packaging.pypi.simple.Crawler

2011-06-16 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: see also http://mail.python.org/pipermail/catalog-sig/2011-June/003793.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12348

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-15 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I find this behavior a bit awkward. Maybe we should ask first if it's ok to create a new setup.cfg and rename the old one, *before* doing it. -- ___ Python tracker rep...@bugs.python.org http

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: This is probably because Tshepang works in a dev environment. I think we should have a nice message like The installation path xxx seems not to exist, aborting installation -- ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Strange, you should get a /usr/[local]/lib/python3.3/site-packages when you just run ./configure; make It looks like you have a dev environment that has installed some stuff -- ___ Python tracker

[issue12246] create installation path if it's non-existent

2011-06-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: s/should get/should not get/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12246

[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: On Wed, Jun 1, 2011 at 5:17 PM, Fred Drake fdr...@acm.org wrote: On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik techto...@gmail.com wrote: Adding catalog-sig to CC. I can guarantee this for Windows. I'll be near Linux box tomorrow

[issue12222] All pysetup commands should respect exit codes

2011-05-31 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: All actions in packaging.run need to respect a basic exit convention 0/1. This is important because pysetup will be used in automated scripts so the caller needs to know wether the call failed or succedeed. Example: pysetup install

[issue12222] All pysetup commands should respect exit codes

2011-05-31 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: fixed install in http://hg.python.org/cpython/rev/ebff46b232ed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1

[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Have you tried registering/uploading stuff through https ? if it's working as is I am +1 for this change in the next 2.7.x. For 2.6 don't know if it's worth a security patch. Martin, Barry, any opinion ? -- nosy: +barry, loewis

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-05-30 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: to be backported in packaging -- in a way that will make it work with previous python versions for the incoming 2.x backport -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10645] Remove egg-info files in stdlib

2011-05-30 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I am going to remove wsgiref.egg-info -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-30 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I fixed it -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12125

[issue12218] Removing wsgiref.egg-info

2011-05-30 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: I am removing that metadata info, since we're moving to PEP 376 -- assignee: tarek components: Library (Lib) messages: 137306 nosy: tarek priority: normal severity: normal status: open title: Removing wsgiref.egg-info versions

[issue10645] Remove egg-info files in stdlib

2011-05-30 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: see issue12218 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___ ___ Python-bugs

[issue12218] Removing wsgiref.egg-info

2011-05-30 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12218

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: looking -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180 ___ ___ Python-bugs-list

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180 ___ ___ Python-bugs-list

[issue12180] test_packaging: failures --without-threads

2011-05-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: all good now -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12180

[issue12113] test_packaging fails when run twice

2011-05-24 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I fixed it. The pypi server missed a Content-Length in its responses, and that made urlretrieve crazy :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-05-24 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: good idea! want to tackle this ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-23 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12125 ___ ___ Python-bugs-list

[issue12143] packaging extension gcc linking fails on Ubuntu Shared

2011-05-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Thanks for the test David -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12143

[issue10126] test_distutils failure with --enable-shared

2011-05-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I am trying to fix this by backporting the distutils fix, but --enabled-share does not work for me ?! $ make distclean ./configure --enable-shared --with-pydebug make $ ./python libpython3.3dm.so.1.0: cannot open shared object file

[issue10126] test_distutils failure with --enable-shared

2011-05-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Fixed in packaging. It seems that all fronts are OK, so closing this -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126

[issue12132] test_packaging failures when run with -j

2011-05-22 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: duplicate - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12132

[issue12132] test_packaging failures when run with -j

2011-05-22 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12132 ___ ___ Python-bugs

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-05-22 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: @ned: right. done, and fixes issue12132 -- assignee: pitrou - tarek components: +Library (Lib) title: --multiprocessing fails with packaging.tests.test_command_build_ext - sysconfig.get_config_vars('srcdir') fails in specific cases

[issue12150] test_sysconfig fails on solaris

2011-05-22 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: == ERROR: test_get_path (test.test_sysconfig.TestSysConfig) -- Traceback (most recent call last): File

[issue12135] test_packaging failure under Windows

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: As I said on python-dev, I am aware of the failures. I have fixed most of them today and yesterday. I have four left including this one. So no need to add more issues, I am on it :) -- ___ Python

[issue12135] The spawn function should return stderr.

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: That's a feature request then, so we will see this once the bbot are green -- priority: critical - normal title: test_packaging failure under Windows - The spawn function should return stderr. type: behavior - feature request

[issue12131] python built with --prefix fails in site.py with no section 'posix_prefix'

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: This seems to be the proper fix, I forgot to change the Makefile. Would you mind applying it ? thanks about editing this file: as mentioned on python dev, there will be several levels of customization (global, per project, per user

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: this test module looks for sysconfig.get_config_var('srcdir') which in turns uses the sys,executable path. multiprocess seems to change it in every process, leading to the errors. To reproduce: ./python Lib/test/regrtest.py -j2 -v

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- superseder: - test_packaging failures when run with -j ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12132

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- superseder: test_packaging failures when run with -j - --multiprocessing fails with packaging.tests.test_command_build_ext ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12132

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Oops. It's a duplicate. Keeping this one since the problem was narrowed to multiprocessing/sys,executable and sysconfig -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue12132] test_packaging failures when run with -j

2011-05-21 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12132

[issue12141] --multiprocessing fails with packaging.tests.test_command_build_ext

2011-05-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: sysconfig is looking for the source dir when sysconfig.get_config_var('srcdir') is called. And this is done like this: if sys.executable: _PROJECT_BASE = os.path.dirname(_safe_realpath(sys.executable)) else: # sys.executable

[issue12143] packaging extension gcc linking fails on Ubuntu Shared

2011-05-21 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: I can't reproduce this yet, or compare it to distutils. I == ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Looks good, please commit this -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12112

[issue12115] some tests need to be skipped on threadless systems

2011-05-19 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: == ERROR: packaging.tests.test_command_upload_docs (unittest.loader.ModuleImportFailure) -- Traceback

[issue12113] test_packaging fails when run twice

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: my commit fixed only the first issue. the second one is a separate issue that needs more investigation -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12113

[issue12120] test_packaging failure

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: on it -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12120 ___ ___ Python-bugs-list mailing

[issue12120] test_packaging failure

2011-05-19 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I cannot reproduce this. there's exactly the same test in distutils, so I am wondering why it passes there and not in packaging for you. Any special way to run the tests ? -- ___ Python tracker

  1   2   3   4   5   6   7   8   9   10   >