[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
Fair enough. Pull request created: https://github.com/python/cpython/pull/16347 Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
OK - but that's just one I picked at random. There are others like it - what would be the process for deciding which ones need to be made private and moved? Should an issue be raised to track this? Regards, Vinay Sajip ___ Python-Dev mailing

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
Ah - I checked, and it's there OK ... (head scratch) Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.pytho

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
ef. I will check when I get a chance. Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archiv

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
s it's still work in progress - which is why I'm asking these questions. Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailm

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
esumably, a PEP would be required, even though it's an implementation detail from the point of view of the language itself? Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-23 Thread Vinay Sajip via Python-Dev
> Moving some of the especially common identifier references into the > interpreter state struct may make sense. > Adding more process globals wouldn't be desirable though, as they're one of > the more common ways of breaking encapsulation between subinterpreters > (hence Eric's efforts to eliminat

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
es this discipline/approach not apply to CPython? Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message

[Python-Dev] Re: static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
rget is very important for keeping public API as small as possible. I'm not suggesting that _Py_IDENTIFIERs become part of the public API. Surely it's not the case that any and every extern identifier becomes part of the public API? (I know people can misuse things and use unsuppo

[Python-Dev] static variables in CPython - duplicated _Py_IDENTIFIERs?

2019-09-20 Thread Vinay Sajip via Python-Dev
ule? After all, they seem for the most part to be well-known constant strings that don't need to be encapsulated in any particular C compilation unit. Regards, Vinay Sajip ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-15 Thread Vinay Sajip
r, by you! See [1] and [2]. Regards, Vinay Sajip [1] http://bugs.python.org/issue17903 [2] https://bitbucket.org/pmoore/pylauncher/commits/87d41c5a8f0fef5ef22f09570903e7aa4c850e96 ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.or

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-15 Thread Vinay Sajip
won't be hit (though if you rely on the PATH being correctly set, then it will work as expected because the handling for e.g. /usr/bin/env python searches the PATH). Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org https:/

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-13 Thread Vinay Sajip
- Original Message - From: Paul Moore > I'd also appreciate your views on the spin-off thread and PEP 486 > ("Make the Python Launcher aware of virtual environments"). I just thought of something ... as far as I know, we've enabled searching for a command on the path - since when a v

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-12 Thread Vinay Sajip
nd I haven't looked into it yet; I just skimmed the differences, and didn't see anything major in launcher.c (I compared with the version in the default branch of cpython). Regards, Vinay Sajip [1] https://bitbucket.org/vinay.sajip/pylauncher __

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-12 Thread Vinay Sajip
remember - he made some helpful suggestions to improve it) which does a similar job to PEP 441's pyzaa and provides improved Windows support (some of which might be supplanted by py.exe support for .pyz/.pyzw, but I have cases where I can't rely on py.e

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-12 Thread Vinay Sajip
- Original Message - From: Steve Dower > I believe are the purpose of those extensions. If "py.exe spam.pyz" > already works, I don't see any need for a PEP to add the association in > the installer. That would be my view, too

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-12 Thread Vinay Sajip
lled, the user gets a chance to associate file extensions with one of the installed Pythons found on the system). Off to read the whole thread on python-dev now ... Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org https://mail.p

Re: [Python-Dev] [Python-checkins] cpython: Added Doc/tools/ subdirs to .hgignore.

2014-03-14 Thread Vinay Sajip
Sorry, my mistake - I should have checked more carefully. Thank you for pointing me to the commit where they were removed - I'll install a venv with Sphinx, revert the change and remove those files from my repo. Regards, Vinay Sajip From: Benjamin Pet

Re: [Python-Dev] Problem with pydoc script in PEP 405 venvs

2013-06-17 Thread Vinay Sajip
Oleg Broytman phdru.name> writes: > > On Mon, Jun 17, 2013 at 06:37:49PM +0000, Vinay Sajip yahoo.co.uk> wrote: > > echo off > > __VENV_PYTHON__ -c "import sys, pydoc; sys.exit(pydoc.cli())" > >I think you want to pass command line arguments: >

Re: [Python-Dev] Problem with pydoc script in PEP 405 venvs

2013-06-17 Thread Vinay Sajip
.cli())" should do it. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Problem with pydoc script in PEP 405 venvs

2013-06-17 Thread Vinay Sajip
both 3.3 and 3.4, as it's not a change in core Python APIs. In the absence of adverse feedback here, I propose to implement approach #2 on both 3.3 and 3.4. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] PEP 379 Python launcher for Windows - behaviour for #!/usr/bin/env python line is wrong

2013-05-14 Thread Vinay Sajip
how to do it... I've created a pull request > against the pypa version in case that's of use... Hi Paul, Sorry I haven't had a chance yet - real life is very busy at the moment. A pull request against the pypa version is fine, and I will get to it soo

Re: [Python-Dev] PEP 379 Python launcher for Windows - behaviour for #!/usr/bin/env python line is wrong

2013-05-04 Thread Vinay Sajip
Paul Moore gmail.com> writes: > PS Vinay - from this post, I assume you're already looking at this > code? I was considering trying to put together a patch, but I don't want to > duplicate effort if you're working on it. I've taken a quick look at it, but I probably won't be able to make any cha

Re: [Python-Dev] PEP 379 Python launcher for Windows - behaviour for #!/usr/bin/env python line is wrong

2013-05-04 Thread Vinay Sajip
itched on only in the presence of e.g. an environment variable such as PYLAUNCH_SEARCHPATH, or should we just change the default behaviour now and risk breaking user scripts which may rely on the current behaviour? Regards, Vinay Sajip ___ Python-Dev ma

Re: [Python-Dev] Safely importing zip files with C extensions

2013-03-27 Thread Vinay Sajip
use pdb can now read the source code from the > zip. Well, it's just an experiment, and I was soliciting comments because I'm not as familiar with the issues as some others are. Distlib is still only at version 0.1.1, and the mount()/unmount() functionality is not set in

Re: [Python-Dev] Safely importing zip files with C extensions

2013-03-27 Thread Vinay Sajip
but I don't > see a compelling reason for adding complexity here. It's not really an > important use case. Well, my post was to elicit some comment about the usefulness of the feature, so fair enough. It doesn't seem especially complex though,

Re: [Python-Dev] Safely importing zip files with C extensions

2013-03-27 Thread Vinay Sajip
aise an ImportError? Or ignore the wheel - seems wrong? Or do something else?) Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Safely importing zip files with C extensions

2013-03-27 Thread Vinay Sajip
27;, '__loader__', '__name__', '__package__', 'encode_basestring_ascii', 'make_encoder', 'make_scanner', 'scanstring'] >>> simplejson._speedups.__file__ '/home/vinay/.distlib/dylib-cache/simplejson/_speedups.so' &g

Re: [Python-Dev] cpython (2.7): Issue #17508: Handled out-of-order handler configuration correctly.

2013-03-23 Thread Vinay Sajip
you add a Misc/NEWS entry for the change / bugfix? Ok, will do. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 405 (venv) - why does it copy the DLLs on Windows

2013-03-22 Thread Vinay Sajip
voids this issue somehow. One example of a non-system-wide installation is a source build of Python. PEP 405 venvs created from a source build should work in the same way as venvs created using an installed Python. Regards, Vinay Sajip ___ Python-D

Re: [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-23 Thread Vinay Sajip
- breaker, but it does mean that you can't e.g. use the ast module in the implementation. This might be a factor if the mini-language ever grows (as it recently did, adding parentheses). Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] Fwd: PEP 426 is now the draft spec for distribution metadata 2.0

2013-02-20 Thread Vinay Sajip
ly, distlib runs on Python 2.6, 2.7 and 3.2+, so there shouldn't be any concerns about support on those older Python versions. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Fwd: PEP 426 is now the draft spec for distribution metadata 2.0

2013-02-20 Thread Vinay Sajip
n't think that the distlib docs suffer inordinately from being on readthedocs.org - for one thing, I've enabled Disqus comments, allowing feedback on the docs - not that I've had any ;-) Closer integration should perhaps happen, but not until the projec

Re: [Python-Dev] Fwd: PEP 426 is now the draft spec for distribution metadata 2.0

2013-02-20 Thread Vinay Sajip
(0.7.3) [for pyramid] download zope.deprecation (4.0.2) [for pyramid] download pyramid (1.4) In the above, nothing was actually downloaded except the metadata. It's just indicating an intuitive ordering for download based on a topological sort of the dependency graph - for pyramid,

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Vinay Sajip
David Cournapeau gmail.com> writes: > You are putting the words out of the context in which those were > written: it is stated that the focus is on the general architecture OK, no offence was meant. Thanks for the clarification. Regards, Vi

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Vinay Sajip
David is just being self-deprecating, but what if he isn't? Or perhaps that part of the page is out of date, and needs updating? I can certainly agree with the "Weak documentation" part of the assessment, but this makes it hard to assess the package as a whole. Note that I'm not s

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Vinay Sajip
27;t have the ability to build pure-Python distributions and distributions including C libs and extensions, with the ability to extend easily by third-party tools. It just needs to be done in a way which is easy to build on, so the included battery stays small and simple. Easier said than done, I k

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Vinay Sajip
ed that distutils2/packaging also failed to make sufficient progress for the same reason. Certainly, with distlib I've tried to incorporate a lot of the setuptools functionality which developers find useful - in-package data, package exports (entry points), wrapping callables with scripts and

Re: [Python-Dev] BDFL delegation for PEP 426 (PyPI metadata 1.3)

2013-02-03 Thread Vinay Sajip
t supported by PEPs, hence the interest in getting the 3 > wheel PEPs (of which the metadata PEP is the first) accepted. Likewise, I will look at the possibility of providing wheel support in distlib, once it has been accepted as a standard and the open issues (such as signature scheme) have been

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Vinay Sajip
xample where fds other than 0, 1 and 2 might be used by design in not-uncommonly-used programs. From a discussion I had with Barry Warsaw a while ago, I seem to remember that there was other software which relied on these features. See [1] for details. Regards, Vinay

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Vinay Sajip
s additional parameters to GnuPG, and they might use these esoteric GnuPG options. Regards, Vinay Sajip [1] http://www.gnupg.org/documentation/manuals/gnupg-devel/GPG-Esoteric-Options.html ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] Why no venv in existing directory?

2013-01-07 Thread Vinay Sajip
Christian Tismer stackless.com> writes: > Anything I'm missing here? The use case was missed during PEP and patch review, so the feature didn't make it into 3.3. Issue #15776 raised the problem; it has been resolved and the feature should appear in Python 3.4. Regar

Re: [Python-Dev] question about packaging

2012-12-29 Thread Vinay Sajip
:O Actually the BitBucket repo is more active and readthedocs has the latest docs, but I do periodically update the above repo on hg.python.org. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] question about packaging

2012-12-29 Thread Vinay Sajip
t is intended to be possible to build packaging systems on top of it. Compared to distutils2, distlib aims to make it easier to transition from existing packaging infrastructure and tools (distutils, setuptools/distribute). Some of the PEPs are still in flux

Re: [Python-Dev] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
16K, due to the possible presence of a pathologically large comment in the end record. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
read the file contents. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Keyword meanings [was: Accept just PEP-0426]

2012-12-06 Thread Vinay Sajip
, this data is not considered reliable - for example, pip runs egg_info on downloaded packages to get updated information when determining dependencies to be downloaded. If the Requires-Dist info in PKG-INFO can't be relied on, surely less critical information such as Obso

Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
what, whereas with Python distributions, there's no central authority that has this function? Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail

Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
n X.Y? I take it we're entirely comfortable with installing setuptools X.Y in that case? How would you ensure the right setuptools is always loaded, since presumably both are on sys.path? Regards, Vinay Sajip ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
missing from the package > index based purely on the distribution names. In which case, it seems sensible to put these constraints into the PEP, so that both PEP implementers and users of those implementations have these guidelines clarified. Regards, Vinay Sajip ___

Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
lues in Provides-Dist? If they are e.g. a bundled SQLAlchemy, why would that be preferable to an entry in Requires-Dist? Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Accept just PEP-0426

2012-11-20 Thread Vinay Sajip
support for the multi-valued "Provides", but I'm not confident that will work as expected given pathological cases like the example I suggested, without getting "complicated" in the Zen of Python sense. I'm not convinced that the maintenance burden of a complicated solu

Re: [Python-Dev] Generally bored by installation

2012-11-16 Thread Vinay Sajip
Eli Bendersky gmail.com> writes: > Use pss [http://pypi.python.org/pypi/pss] How does it compare with grin? [http://pypi.python.org/pypi/grin] On the face of it, they both do the same job. Regards, Vinay Sajip ___ Python-Dev mailing list

Re: [Python-Dev] configure produces a non-working Makefile in some scenarios, due to ASDLGEN

2012-10-29 Thread Vinay Sajip
uilt Python 3.4. Ned's post showed me why. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] configure produces a non-working Makefile in some scenarios, due to ASDLGEN

2012-10-29 Thread Vinay Sajip
bin/python2.7 Aha! Thanks for pointing that out. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] configure produces a non-working Makefile in some scenarios, due to ASDLGEN

2012-10-28 Thread Vinay Sajip
f I clean the default repo and re-run make, it fails at the ASDLGEN step, because the $HOME/bin/python3.4 script fails, due to not being able to invoke $HOME/projects/python/default/python. Is this a bug in configure, or is my configuration regarded as too perverse to s

Re: [Python-Dev] Improved evaluator added to ast module

2012-10-11 Thread Vinay Sajip
nd what shouldn't be. ISTM there is a space for a limited evaluator that's less limiting than literal_eval(). I do realise that this type of sandboxing is not easy to achieve, and I'm not aiming to advance the state of the art here - I just want to close the iss

Re: [Python-Dev] Improved evaluator added to ast module

2012-10-11 Thread Vinay Sajip
r callback to be specified - is sufficient to allay the concerns that led to the issue being raised in the first place. In which case, I can close the issue without committing this patch. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python

[Python-Dev] Improved evaluator added to ast module

2012-10-11 Thread Vinay Sajip
larly as there may be security implications (the issue is titled "Improve the security model for logging listener"). Barring objections, I plan to commit it in a week or so. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@

Re: [Python-Dev] packaging location ?

2012-09-16 Thread Vinay Sajip
de is already in the distutils2.install_distinfo.install_distinfo.run() method. I'll pull it out into such a method. Anyone else, do chip in if you think this is insufficient or sub-optimal. Perhaps these discussions (on the detail) should continue on distutils-sig. I'll post there when I&#x

Re: [Python-Dev] packaging location ?

2012-09-15 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > On the other hand, if you are not using hg.python.org features such as > commits e-mails or buildbots, it's also fine living on bitbucket until > the project matures a bit. > I'm fine with tha

Re: [Python-Dev] packaging location ?

2012-09-15 Thread Vinay Sajip
iles in there - a Makefile, configure script and some .bat files. I tried cloning it but I'm not allowed to create a repo at the top level - it says Please use a secondary level path such as "sandbox/distlib" Seems a shame not to make it a top-le

Re: [Python-Dev] packaging location ?

2012-09-15 Thread Vinay Sajip
Tarek Ziadé ziade.org> writes: > > Regards, > oh, cool ! > > maybe we could copy it at hg.python.org ? > Sure, but I don't know if I can do it. IIUC it needs someone with an account on the server to create new repositori

Re: [Python-Dev] packaging location ?

2012-09-14 Thread Vinay Sajip
n dependency graph logic glob.py - globbing functionality The code was taken at around the time packaging was removed, and may not have more recent changes. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Bitbucket mirror?

2012-06-28 Thread Vinay Sajip
work on the venv code was done using a clone from this mirror, and I pulled and merged from it lots of times without any issues. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Status of packaging in 3.3

2012-06-23 Thread Vinay Sajip
eme position in order to suggest that there might be problems with its basic design. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mail

Re: [Python-Dev] Status of packaging in 3.3

2012-06-23 Thread Vinay Sajip
and fall into oblivion. Quite possibly, but that'll be the chicken-and-egg thing I mentioned. Some projects can be worked on in comparative isolation; other things, like packaging, need inputs from a wider range of people to gain the necessary credibility. Regards, Vinay Sajip

Re: [Python-Dev] Status of packaging in 3.3

2012-06-23 Thread Vinay Sajip
stutils' way of fulfilling those needs is too fragile - else, why do you need things like Bento? Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python

Re: [Python-Dev] Status of packaging in 3.3

2012-06-23 Thread Vinay Sajip
ment work to date, but it seems the net needs to be spread even wider to ensure that all constituencies are represented (for example, features needed only on Windows, such as binary distributions and executable scripts, have lagged a little bit behind). Regards, Vinay Sajip

Re: [Python-Dev] Status of packaging in 3.3

2012-06-23 Thread Vinay Sajip
racks. The basic low-level building blocks like versioning, metadata and markers should be fine, but I'm not convinced that the command-class paradigm is appropriate in this case. The whole intricate "initialize_options"/"finalize_options"/"set_undefined

Re: [Python-Dev] Signed packages

2012-06-22 Thread Vinay Sajip
v.loewis.de> writes: > > See above. Also notice that such signing is already implemented, as part > of PEP 381. > BTW, I notice that the certificate for https://pypi.python.org/ expired a week ago ... Regards, Vinay Sajip ___ Pyt

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
mething like that in an earlier message). > I do have concerns about making signed code mandatory. (Not least over > whether it'd let me install my own unsigned code!) Any workable mechanism would need to be optional (the user doing the installing would be the decider as to whethe

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
have allowed backdoors, etc. I don't see that it mandates use of SSL, or even signing, by anyone. At least some people will require that an installer be invokable with an option that causes it to bail if any part of what's being installed can't be verifie

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
enough on Posix platforms, perhaps, but what about Windows? One can't expect a C compiler to be installed everywhere. Perhaps security against backdoors could also be provided through other mechanisms, such as signing of binary installers. Regards, Vinay Sajip ___

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
unication between hooks and code reuse between hooks. I don't see any drawback to using only one file ? I was assuming that the dist.yaml file would just have callable references here; I suppose having (sizable) Python fragments in dist.yaml might become unwieldy.

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > ini-style is often good enough, and failing that there's json. Or, you > just depend on PyYAML :) Except when PyYAML is packaged and distributed using dist.yaml :-) Regards, Vinay Sajip ___ Python-De

Re: [Python-Dev] Status of packaging in 3.3

2012-06-22 Thread Vinay Sajip
format for review/edit, though. +1 to the overall approach suggested, it makes a lot of sense. Simple is better than complex, and all that :-) Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Status of packaging in 3.3

2012-06-21 Thread Vinay Sajip
tuptools doesn't seem to be something to bet the future on. As an infrastructure concern, this area of functionality definitely needs to be supported in the stdlib, even if it's a painful process getting there. The barriers seem more social than technical, but hopefully the divide-and-co

Re: [Python-Dev] Status of packaging in 3.3

2012-06-20 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > > Deciding to remove packaging from 3.3 is another instance of the same > mistake, IMO. > What's the rationale for leaving it in, when it's known to be incomplete/unfinished? Regards, Vinay Sajip _

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-29 Thread Vinay Sajip
he stock launcher; any script installed by packaging (or setuptools/Distribute) in a venv should have the correct shebang line, and the PEP 397 launcher should do the right thing. I'm sorry for all the confusion I've caused here :-( Regards, Vinay Sajip __

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-29 Thread Vinay Sajip
separately. There's nothing in there related to #12394 - just a pysetup3.exe file, which I had originally overlooked and have now removed. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-29 Thread Vinay Sajip
n 01381723bc50 - the .exe is gone. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
ackaging. If people generally feel strongly about this, I can delete the .exe and re-introduce it later if/when appropriate. It might have had a few rough edges, but I wouldn't have characterised the patch as "half-finished" - that seems a littl

Re: [Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
ight now? It will need integrating with the existing VS2010 solution file, and at the moment I cannot do that integration because I haven't yet got a full VS2010 build environment, just a VS2008 one. Regards, Vinay Sajip ___ Python-Dev mailin

[Python-Dev] PEP 405 (Python Virtual Environments) and Windows script support

2012-05-28 Thread Vinay Sajip
Python 3.3. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Accepting PEP 405 (Python Virtual Environments)

2012-05-25 Thread Vinay Sajip
week since I'm on vacation for one week > from June 2nd. It's now implemented in the default branch :-) Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscr

Re: [Python-Dev] Accepting PEP 405 (Python Virtual Environments)

2012-05-25 Thread Vinay Sajip
week since I'm on vacation for one week > from June 2nd. I believe it is ready to integrate now. I aim to do it tomorrow (26 May) a.m. UTC, so that it can make the next alpha. Regards, Vinay Sajip ___ Python-Dev mailing list Pyt

[Python-Dev] Rietveld integration problem?

2012-05-09 Thread Vinay Sajip
e.g. for issue http://bugs.python.org/issue1521950 Is it something I'm doing wrong, or is there a problem with the issue tracker/Rietveld integration? Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-08 Thread Vinay Sajip
nt. Agreed it's not essential, but it also provides some useful information about the version (for a user, rather than the update script) without actually having to invoke the interpreter to check. Regards, Vinay Sajip ___ Python-Dev mail

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-07 Thread Vinay Sajip
ironment variable, __PYTHONV_LAUNCHER__, which points to itself, before it execs the real Python. On OS X, Python code checks for this, rather than sys.executable, to determine the location of the pyvenv.cfg file. This seems to work for me (Ned Deily is looking into it more closely, I believe). Rega

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-06 Thread Vinay Sajip
you to have an isolated set of library dependencies for a project. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-05 Thread Vinay Sajip
tool will need to only update environments which were set up with the particular version of Python which was updated. ISTM pyvenv.cfg will need to have a version=X.Y.Z line in it, which is added during venv creation. That information will be used by the tool to only update specific environments.

Re: [Python-Dev] Python program name

2012-05-04 Thread Vinay Sajip
or now, and see where the other failures lead me to. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Python program name

2012-05-04 Thread Vinay Sajip
table's path, and try with that. I would prefer to use option 2 and change getpath.c / getpathp.c accordingly. Does anyone here see problems with that approach? Regards, Vinay Sajip [1] http://stackoverflow.com/a/933996 ___ Python-Dev m

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Vinay Sajip
ndows utilities) has trouble. > > Not sure if that makes a difference or not. It's only really an issue for new / inexperienced users, I agree. Since these files are installed only on Windows systems, there's no reason for them not to have the native

[Python-Dev] CRLF line endings

2012-05-03 Thread Vinay Sajip
hem. Can anyone please let me know if they object? Otherwise I'll go ahead and add them to .hgeol in the next hour or so. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-de

[Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Vinay Sajip
#x27; The trailing space later causes a mismatch with the end tag, and leads to the errors. Django's use of the tagfind pattern is in a subclass of HTMLParser, in an overridden parse_startag method. Do we need to indicate more strongly that data like tagfind are private? Or has the change

Re: [Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-11 Thread Vinay Sajip
omments would be appreciated. Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-10 Thread Vinay Sajip
meant to be overridden and so not private). Regards, Vinay Sajip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Possible change to logging.handlers.SysLogHandler

2012-04-06 Thread Vinay Sajip
ed as objectionable. Regards, Vinay Sajip [1] http://bugs.python.org/issue14452 [2] http://bugs.python.org/issue7077 [3] http://bugs.python.org/issue8795 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

  1   2   3   4   5   >