are probably the best standard for the end result of that process,
but eggs or even just bdist_dumb are good enough for most cases. I don't really
recall if distutils2's pysetup command quite gets us this far, but it's on the
right track.
--
Robert Kern
I have come to believe that the whole world
way around it until we have such metadata in a declarative,
non-executable data file rather than executed code.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying
I'd go so far as to force every .whl to have a build number in it,
but it would be great if we could figure out a way to have a compatible
convention that could include build numbers when needed.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
setuptools changes the
behavior of the install command to install .eggs, those packages need extra
flags to use pip's preferred flat installs. Using easy_install (with the right
flags) yields consistent behavior for all packages.
--
Robert Kern
I have come to believe that the whole world
setup.py install
running install
error: error in /Users/rkern/.pydistutils.cfg: command 'install' has no such
option 'single_version_externally_managed'
Making those warnings instead of errors would probably work.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless
'single_version_externally_managed'
Please show me a configuration that you have tested.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
On 2010-03-24 19:56 , P.J. Eby wrote:
At 05:27 PM 3/24/2010 -0500, Robert Kern wrote:
Since setuptools changes the behavior of the install command to
install .eggs, those packages need extra flags to use pip's preferred
flat installs. Using easy_install (with the right flags) yields
consistent
.
import os
import pkgutil
for subdir in ['src', 'share']:
__path__.append(os.path.join(os.path.dirname(__file__), subdir))
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
On 2010-02-04 11:06 AM, Robert Kern wrote:
On 2010-02-04 10:53 AM, Riccardo-Maria BIANCHI wrote:
Hi,
I have a package structured like this:
package/__init__.py
src/ __init__.py
mod1.py
share/__init__.py
mod2.py
Now I can import them as:
package.src.mod1
package.share.mod2
How can I use
package.src import mod1
from package.share import mod2
Beware though, that this means the modules will be loaded
even if import package is called, which could have some unwanted
side effects depending on the code.
This does not work. You cannot import package.mod1 under this scenario.
--
Robert
.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG maillist - Distutils-SIG
complicated
when simple works?
Because simple doesn't work. You cannot do import package.mod1 or from
package.mod1 import foo with that scheme.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
On 2010-01-29 16:03 PM, Tom Davis wrote:
File
/tmp/easy_install-m7gqed/numpy-1.4.0/numpy/distutils/misc_util.py,
line 1668, in add_scripts
AttributeError: 'NoneType' object has no attribute 'extend'
I think I may have fixed it in numpy r8080.
--
Robert Kern
I have come
On 2010-01-29 16:46 PM, Tom Davis wrote:
I downloaded a snapshot, added it to dependency_links, and ran /setup.py
install/ again. It threw the same exception.
Traceback, please?
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
r8081. I fixed a couple of other places where
lists may not be initialized properly.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
with
Distribute or pip.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG maillist
(and bizarre), but the desire to convert
Windows-platform eggs to .msi or .exe installers is not so rare and does not
present the same level of difficulty. The latter is the use case David was
referring to, not the one you outlined.
--
Robert Kern
I have come to believe that the whole world
outlined.
Why do people want to do that? Can't they build the type of package they
want from the source package?
Not necessarily on Windows.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
.
With all respect to Greg Ward and the rest of the original distutils authors, it
was a fantastic improvement over the state of affairs ten years ago, but we've
learned a lot about application frameworks and about building software since then.
--
Robert Kern
I have come to believe
were properly designed. And this doesn't
even get into the fact that many of the numpy.distutils command classes that are
shared with setuptools are conditional subclasses and probably still buggily
cobbled together.
--
Robert Kern
I have come to believe that the whole world is an enigma
that the useful
knowledge can be extracted from distutils and applied well in a rewrite. The
most important useful knowledge is the extension building flags, and I think you
have done a good job of transplanting that information into the entirely
different build system of SCons.
--
Robert Kern
I
distutils with another package named distutils.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
uninterested in helping you make incremental
improvements that are going to break all the hard work we've already done just
to get things working as it is. I find that prospect incredibly frustrating.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
Tarek Ziadé wrote:
On Thu, Nov 12, 2009 at 1:59 AM, Robert Kern robert.k...@gmail.com wrote:
On 2009-11-11 18:48 PM, Tarek Ziadé wrote:
I want to improve Distutils, but not for the price of a complete drop.
I don't think the edge cases we
are discussing worth it, and I still fail to see why
needs to be scratched and rewritten is not
going to help. You need to DO it.
Pardon us for sincerely answering the questions asked of us.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
hand, I wasn't ignored
this time.
The discussion is pointless. If you want something better than distutils, do it.
David's working on it:
http://pypi.python.org/pypi/numscons
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
Lennart Regebro wrote:
2009/11/12 Robert Kern robert.k...@gmail.com:
The discussion is pointless. If you want something better than distutils,
do it.
David's working on it:
http://pypi.python.org/pypi/numscons
Enable to use scons within distutils to build extensions
I'm confused now
Lennart Regebro wrote:
2009/11/12 Robert Kern robert.k...@gmail.com:
The discussion is pointless. If you want something better than distutils,
do it.
David's working on it:
http://pypi.python.org/pypi/numscons
Enable to use scons within distutils to build extensions
I'm confused now
*triggers* the problem that the fix is supposed to address.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
-info/PyPM.txt.
But release numbers are already stored in the PKG_INFO metadata
file. Why store it somewhere else?
No, they're not.
http://www.python.org/dev/peps/pep-0241/
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our
they're part of http://www.python.org/dev/peps/pep-0345/
I'll revise my statement back to saying that doing it according
to PEP-345 makes the most sense imho.
Where? I don't see it.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
are referring to?
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG maillist
to mark revisions
of the binary packages distinct from the upstream sources.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
on
their systems.
easy_install does not execute the executable. bdist_wininst installers are zip
files concatenated with an executable header. easy_install just unzips the file
as if it were a zipped egg and ignores the executable part.
--
Robert Kern
I have come to believe that the whole world
/Versions/Current
[Current]$ du -hsc .
1.5G.
1.5Gtotal
[Current]$ du -hsc lib/python2.5/site-packages
1.4Glib/python2.5/site-packages
1.4Gtotal
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
installation
that much. That's not a universally true statement.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
just not true.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG maillist
should be different. READMEs need
information like how to install the program. Help text does not.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
implementations in the core that could be overridden by
plugins. Then you can have the best of both worlds at the cost of some
additional complexity.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
. Is there a
cleaner version of doing this?
You could ensure that you always have a setuptools-based setup.py:
python -c import setuptools; execfile('setup.py') install
--single-version-.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
processes (at least, not easily). One might use a Makefile or other build
tool to build the docs or other assets. So you need a manual way of telling the
setup.py file what additional files to include.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
subprocesses that import
the __main__ of the parent process.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
such a custom --prefix?
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG
, LIBPREFIX, ICONPREFIX, icon_size
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils
about ours.
I typically have multiple versions of things installed, and switch between them,
but I never use pkg_resources.require() to do so.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret
documentation to see if it's in there - it wasn't
obvious from reading the contents). Can anyone give me a quick pointer
to the explanation?
.pyc files are minor-version-specific. Eggs contain .pyc files.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
Ronald Oussoren wrote:
On 9 Jan, 2008, at 1:47, Ian Bicking wrote:
Robert Kern wrote:
Is there an appropriate mailing list for talking about virtualenv?
I've run into a problem where virtualenvs on OS X cannot access the
screen to run GUIs. I've found a solution that appears to work
Dave Peterson wrote:
Robert Kern wrote:
Dave Peterson wrote:
Most of us here are not seeing this
error so I'm thinking it isn't something obviously wrong with the
setup.py. You can look at the setup.py at :
https://svn.enthought.com/enthought/browser/tags/enthought.interpolate_2.0.0b3
. The latter is
probably best.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG
that this is desired and safe is probably more magic than it's worth.
http://docs.python.org/inst/config-syntax.html
Use a section in your pydistutils.cfg file like this:
[build_ext]
compiler=mingw32
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG maillist - Distutils-SIG
Stanley A. Klein wrote:
Robert Kern wrote:
Stanley A. Klein wrote:
I tried to do something to fix the numpy distutils bdist_rpm.py (by
trying to follow what was done in install.py) but it didn't work and I
got an error message I didn't understand.
I'd like to help, but if you don't copy
Stanley's emails on the subject, and don't see enough information for me to
really pin down the problem.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth
the unpackaged files error looks like. Can you
try Phillip's suggestion using --root and --record and show us the results? Did
you run python setup.py build before python setup.py bdist_rpm? We've often
seen problems with the dependency-handling between distutils commands.
--
Robert Kern
I have come
/oof/oof2/index.html
Will your code be open source? We have many requests for SUNDIALS wrappers on
the scipy list, and it would be great to satisfy them.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
://lists.debian.org/debian-python/
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
probably want to use sys.executable (and the subprocess module if you have
Python = 2.4):
import subprocess
import sys
subprocess.call([sys.executable, 'setup.py', 'egg_info'])
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible
Phillip J. Eby wrote:
At 04:47 PM 5/15/2007 -0500, Robert Kern wrote:
Phillip J. Eby wrote:
Reading that page, I'm not sure whether you want a scikits namespace
package in the first place. A namespace package is used to group
several projects under a single owner, ala the various zope
Lemburg's mx extensions seem to define an
mx_autoconf distutils command that might be useful to look at, but I don't know
the details about how he uses it.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
will respond to your message.
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth.
-- Umberto Eco
___
Distutils-SIG
that want to provide the
appropriate information for egg builds but not (yet) *require* setuptools or egg
builds. It means that easy_install somepackage==dev works (a failing of the
setupegg.py approach) and allows python setup.py install to work as standard
distutils does.
--
Robert Kern
[EMAIL PROTECTED
Phillip J. Eby wrote:
At 01:31 PM 2/9/2006 -0600, Robert Kern wrote:
Andrew Straw wrote:
Note that matplotlib tried essentially this for a while, but apparently
some folks really didn't like it. I'm not sure what exactly broke on
their systems (they didn't complain to the mailing list
Phillip J. Eby wrote:
At 02:10 PM 2/9/2006 -0600, Robert Kern wrote:
Phillip J. Eby wrote:
setuptools-based packages can be forced to install the old-fashioned way
using:
setup.py install --single-version-externally-managed
as long as you also specify a --root directory or a --record
Stefan Seefeld wrote:
Robert Kern wrote:
Not really, no. In many cases (e.g., GNU ld), there's simply no way to tell
the
linker that you prefer static libraries to shared libraries when you are
building a shared library like a Python extension. You simply have to make
sure
that the static
), not filesystem form
(matplotlib/toolkits). Correcting them, and adding an empty
lib/matplotlib/toolkits/__init__.py to the matplotlib checkout allows me to
build eggs with namespace_packages set appropriately.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Jeff Pitman wrote:
Are these just extensions that are imported? Because if they are, then
you don't need to mess with LD_LIBRARY_PATH and you can put them
anywhere on Linux as long as PYTHONPATH is correct.
No, they are things like libpng.so that the extension modules use.
--
Robert Kern
path.
IIRC, this can be a relative path. Bob Ippolito's py2app does this kind of
rewriting for making relocatable .app bundles. I'm sure he'll chime in soon, so
I'm not entirely sure why I bothered replying myself.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
be curious to know what P, B and C translate to in real
packages. :)
P = matplotlib
B = Numeric
C = numarray
D = scipy_core
Until everyone ports their stuff to scipy_core, there are still people
who need to use numarray or Numeric to be compatible with other packages.
--
Robert Kern
[EMAIL PROTECTED
/... when
according to Debian policy and general UNIX lore, such should be placed
somewhere in /usr/share/ Would it be possible to treat
/usr/share/pythonX.Y-egginfo/ as a proxy for
/usr/lib/pythonX.Y/site-packages/ when searching for .egg-info directories?
--
Robert Kern
[EMAIL PROTECTED
. Preferably
there would be one --force option per sanity check and one overall
--force that entails all of the others, but I'll take what I can get.
I'm willing to work on a patch if given a little guidance as to where
all of the sanity checks are.
Thank you for your attention.
--
Robert Kern
of site directories in
site.addsitepackages(), which is automatically executed through
site.main(). If it's not working on your machine, then I think it's a
problem with your particular configuration.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves
with the other installed
packages.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
___
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org
Phillip J. Eby wrote:
At 11:10 AM 9/15/2005 -0700, Robert Kern wrote:
I have a feeling that there isn't a pressing need to be able to install
.app bundles from easy_install. If the package maintainer is going to go
to the trouble of writing a setup.py that can be used with py2app, he'll
almost
Phillip J. Eby wrote:
At 11:27 PM 9/13/2005 -0700, Robert Kern wrote:
Index: setuptools/command/easy_install.py
=== RCS
file:
/cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/easy_install.py,v
retrieving
by the user! Eureka! Now I just have to figure out a
way to find out if --install-dir wasn't set
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
should you bother with this strategy.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
___
Distutils-SIG maillist - Distutils-SIG@python.org
http
76 matches
Mail list logo