473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

distutils and Debian

The distutils download page has:
--------------------------------------------------------
Current stable release

The current stable release is Distutils 1.0.2; you can download it as:

* Distutils-1.0.2.tar.gz (source distribution) (233k)
* Distutils-1.0.2.zip (source distribution) (274k)
* Distutils-1.0.2.win32.exe (Windows installer) (187k)

If you are running Python version 1.6 or later, you do not need to
download the Distutils: they're included with Python. However, if you
have a Distutils more recent than your Python, you might want to install
it: see the Distutils README.txt file. Version 1.0.2 is identical to the
version included in Python 2.1.
---------------------------------------------------------

With Debian, it seems that distutils is not included for
Python 2.2 or 2.3.

Should this be reported as a Debian bug?

Colin W.
Jul 18 '05 #1
15 4084
On Wed, 10 Nov 2004 19:08:09 -0500, Colin J. Williams <cj*@sympatico.ca> wrote:
The distutils download page has:
--------------------------------------------------------
Current stable release

The current stable release is Distutils 1.0.2; you can download it as:

* Distutils-1.0.2.tar.gz (source distribution) (233k)
* Distutils-1.0.2.zip (source distribution) (274k)
* Distutils-1.0.2.win32.exe (Windows installer) (187k)

If you are running Python version 1.6 or later, you do not need to
download the Distutils: they're included with Python. However, if you
have a Distutils more recent than your Python, you might want to install
it: see the Distutils README.txt file. Version 1.0.2 is identical to the
version included in Python 2.1.
---------------------------------------------------------

With Debian, it seems that distutils is not included for
Python 2.2 or 2.3.

Should this be reported as a Debian bug?


No.

It's in the python2.x-dev packages.

Debian often split large things up into smaller packages, distutils
isn't needed by the basic debian user who only installs debian
packages after all.

"apt-cache search distutils" finds it easily enough for those who do
want it.

--
Sam Holden
Jul 18 '05 #2
Sam Holden wrote:

Should this be reported as a Debian bug?
No.


I would say yes ... there is no logic in crippling
a standard python distribution. What else is missing?

Istvan.

Jul 18 '05 #3
Istvan Albert wrote:
Sam Holden wrote:

[Colin J. Williams wrote:]
Should this be reported as a Debian bug?


No.

I would say yes ... there is no logic in crippling
a standard python distribution. What else is missing?


It's a matter of Debian policy to split things into runtime packages and
development packages. A Debian package that needs Python to run need
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.

Debian users know, or ought to, that if they want to compile
extra-Debian software that needs Python (or whatever) they need to
install the appropriate *-dev packages.

This is a pretty standard split thats followed by several free UN*X
distributions (I'm tempted to say "most" but I don't have personal
experience with enough to do that).

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #4
On Wed, 10 Nov 2004 20:03:51 -0500,
Istvan Albert <ia*****@mailblocks.com> wrote:
Sam Holden wrote:

Should this be reported as a Debian bug?

No.


I would say yes ... there is no logic in crippling
a standard python distribution. What else is missing?


If it's anything like perl then lots of things. But they
are easily installed via their seperate packages.

The documentation being the big obvious thing.
Tkinter being another.

The logic might be to make small installs possible. If all
of "standard python" was put in one package then debian
couldn't use python for writing things which might be
wanted on small systems.

It might also make sense to split "pure python" and "binary"
packages up since the "pure python" packages might be sharable
across architecures, but I don't think that is done.

"no logic" seems a bit extreme. Cost exceeding the benefit
might be true, but of the top of my head there's two vaguely
"logical" reasons.

--
Sam Holden
Jul 18 '05 #5
Robert Kern wrote:
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.


The *devel* branch in my interpretation means the distribution
that contains the files used during the development of the
application itself. For example the C headers
that you mention.

But it should not mean removing support
for installing new scripts for the runtime
application!

Distutils is primarily about installing and distributing
python programs and it has little to do with developing
python itself. Some packages will not
be installable without the devel branch but removing
distutils to head off that situation seems very odd.

Istvan.
Jul 18 '05 #6
Istvan Albert wrote:
Robert Kern wrote:
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.

The *devel* branch in my interpretation means the distribution
that contains the files used during the development of the
application itself. For example the C headers
that you mention.


But in Debian's consistent interpretation, it means "for development
*with* the library/interpreter/whatever." If I want to compile a C
program, I need to install libc6-dev. If I want to *develop* glibc, I
get the source. Similar strategies are employed by other free Unices'
package systems.
But it should not mean removing support
for installing new scripts for the runtime
application!
If I want to compile a non-Debian program that uses libpng, I install
libpng-dev. If I want to install a non-Debian Python package, I install
python-dev. <shrug>
Distutils is primarily about installing and distributing
python programs and it has little to do with developing
python itself.
And as I said, your interpretation has nothing to do with the way Debian
and other Linux/BSD/what-have-you distributions use the suffix in their
package names.
Some packages will not
be installable without the devel branch but removing
distutils to head off that situation seems very odd.

Istvan.


--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #7
Sam Holden wrote:
On Wed, 10 Nov 2004 19:08:09 -0500, Colin J. Williams <cj*@sympatico.ca> wrote:
The distutils download page has:
--------------------------------------------------------
Current stable release

The current stable release is Distutils 1.0.2; you can download it as:

* Distutils-1.0.2.tar.gz (source distribution) (233k)
* Distutils-1.0.2.zip (source distribution) (274k)
* Distutils-1.0.2.win32.exe (Windows installer) (187k)

If you are running Python version 1.6 or later, you do not need to
download the Distutils: they're included with Python. However, if you
have a Distutils more recent than your Python, you might want to install
it: see the Distutils README.txt file. Version 1.0.2 is identical to the
version included in Python 2.1.
---------------------------------------------------------

With Debian, it seems that distutils is not included for
Python 2.2 or 2.3.

Should this be reported as a Debian bug?

No.

It's in the python2.x-dev packages.

Debian often split large things up into smaller packages, distutils
isn't needed by the basic debian user who only installs debian
packages after all.

"apt-cache search distutils" finds it easily enough for those who do
want it.

Thanks for pointing this out, but I have checked and Python2.3.4-dev is
installed.

Colin W.
Jul 18 '05 #8
Robert Kern wrote:
Istvan Albert wrote:
Sam Holden wrote:


[Colin J. Williams wrote:]
Should this be reported as a Debian bug?

No.


I would say yes ... there is no logic in crippling
a standard python distribution. What else is missing?

It's a matter of Debian policy to split things into runtime packages and
development packages. A Debian package that needs Python to run need
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.

Debian users know, or ought to, that if they want to compile
extra-Debian software that needs Python (or whatever) they need to
install the appropriate *-dev packages.

You are right, but there is a learning curve for those of us new to Linux.

I have installed the Python*-dev packages, but my present problem
centres on installing distutils.

With >python setup.py install, I get:
Traceback (most recent call last):
File "setup.py", line 30, in ?
packages = ['distutils', 'distutils.command'],
File "/root/downloads/python/Distutils-1.0.2/distutils/core.py", line
102, in setup
_setup_distribution = dist = klass(attrs)
File "/root/downloads/python/Distutils-1.0.2/distutils/dist.py", line
130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute 'get___doc__'

I would welcome any suggestion as to how I can work around this.

Colin W.
Jul 18 '05 #9
Istvan Albert wrote:
Robert Kern wrote:
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.

The *devel* branch in my interpretation means the distribution
that contains the files used during the development of the
application itself. For example the C headers
that you mention.

But it should not mean removing support
for installing new scripts for the runtime
application!

Distutils is primarily about installing and distributing
python programs and it has little to do with developing
python itself. Some packages will not
be installable without the devel branch but removing
distutils to head off that situation seems very odd.

Istvan.

I'm inclined to agree with this.

Colin W.
Jul 18 '05 #10
Colin J. Williams wrote:
I have installed the Python*-dev packages, but my present problem
centres on installing distutils.
Why are you trying to install distutils over the one provided by
python-dev? It's probably not a good idea.
With >python setup.py install, I get:
Traceback (most recent call last):
File "setup.py", line 30, in ?
packages = ['distutils', 'distutils.command'],
File "/root/downloads/python/Distutils-1.0.2/distutils/core.py", line
102, in setup
_setup_distribution = dist = klass(attrs)
File "/root/downloads/python/Distutils-1.0.2/distutils/dist.py", line
130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'

I would welcome any suggestion as to how I can work around this.


I don't have a clue. It seems to be internal to the Distutils-1.0.2
source distribution and not using the distutils from python-dev. I
suggest asking on the distutils mailing list.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Jul 18 '05 #11
Robert Kern wrote:
Colin J. Williams wrote:
I have installed the Python*-dev packages, but my present problem
centres on installing distutils.

Why are you trying to install distutils over the one provided by
python-dev? It's probably not a good idea.

I am doing this because there is no distutils in the Debian packages for
Python2.3.4 or Python 2.3.4-dev.

Colin W.
With >python setup.py install, I get:
Traceback (most recent call last):
File "setup.py", line 30, in ?
packages = ['distutils', 'distutils.command'],
File "/root/downloads/python/Distutils-1.0.2/distutils/core.py",
line 102, in setup
_setup_distribution = dist = klass(attrs)
File "/root/downloads/python/Distutils-1.0.2/distutils/dist.py",
line 130, in __init__
setattr(self, method_name, getattr(self.metadata, method_name))
AttributeError: DistributionMetadata instance has no attribute
'get___doc__'

I would welcome any suggestion as to how I can work around this.

I don't have a clue. It seems to be internal to the Distutils-1.0.2
source distribution and not using the distutils from python-dev. I
suggest asking on the distutils mailing list.

Jul 18 '05 #12
Robert Kern <rk***@ucsd.edu> writes:
And as I said, your interpretation has nothing to do with the way
Debian and other Linux/BSD/what-have-you distributions use the suffix
in their package names.


BSDs in general use "-devel" to mean the development branch of the
software in question, *not* the tools for those installing software
from some place other than the standard packages distribution. The
Python port installs all of python, including Tkinter.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 18 '05 #13
On Thu, 11 Nov 2004 13:36:22 -0500, Colin J. Williams <cj*@sympatico.ca> wrote:
Robert Kern wrote:
Colin J. Williams wrote:
I have installed the Python*-dev packages, but my present problem
centres on installing distutils.

Why are you trying to install distutils over the one provided by
python-dev? It's probably not a good idea.

I am doing this because there is no distutils in the Debian packages for
Python2.3.4 or Python 2.3.4-dev.


What debian are you using?

On unstable (x86) I get:
; apt-cache search distutils | grep python2\\.3
python2.3-dev - Header files and a static library for Python (v2.3)
python2.3-scipy-core - low level utilities for scipy (for python 2.3)
; dpkg -L python2.3-dev | grep distutils/__init__
/usr/lib/python2.3/distutils/__init__.py
; python2.3 -V
Python 2.3.4

On stable (x86) I get:
; apt-cache search distutils | grep python2\\.3
python2.3-dev - Header files and a static library for Python (v2.3)
; dpkg -L python2.3-dev | grep distutils/__init__
/usr/lib/python2.3/distutils/__init__.py
; python2.3 -V
Python 2.3b2+

I can't see a python2.3.4 package anywhere...

I you are using stable you should be able to pull 2.3.4 from testing,
assuming it's in there of course (and if not from unstable)...

--
Sam Holden
Jul 18 '05 #14
On Thu, 11 Nov 2004 09:45:24 -0500, Colin J. Williams <cj*@sympatico.ca> wrote:
Istvan Albert wrote:
Robert Kern wrote:
only depend on the main python package. Most packages that need Python
*don't* need distutils or the C headers or the static library.

The *devel* branch in my interpretation means the distribution
that contains the files used during the development of the
application itself. For example the C headers
that you mention.

But it should not mean removing support
for installing new scripts for the runtime
application!

Distutils is primarily about installing and distributing
python programs and it has little to do with developing
python itself. Some packages will not
be installable without the devel branch but removing
distutils to head off that situation seems very odd.

Istvan.

I'm inclined to agree with this.


But -dev in debian doesn't mean that.

-dev in debian means the stuff you need to develop *with* that
package. The "python" package allows the running of python scripts
that exist in other packages. The "python-dev" package allows the
creation of new python scripts. Installing a python script
from an external source is equivalent to creating it from this
persepective.

Just like "libc6" allows the running of programs linked with the
c library that exist in other packages. The "libc6-dev" package is
required if you want to create new programs that link with the
c library (since it contains the header files, while "libc6" contains
only shared libs (and timezone data files)).

It's a debian thing. That other distributions (and other systems) use
a different naming and package scheme is irrelevant.

--
Sam Holden
Jul 18 '05 #15
Colin J. Williams <cj*@sympatico.ca> wrote:
Robert Kern wrote:

Why are you trying to install distutils over the one provided by
python-dev? It's probably not a good idea.

I am doing this because there is no distutils in the Debian packages for
Python2.3.4 or Python 2.3.4-dev.


$ dpkg -l python2.3-dev
....
ii python2.3-dev 2.3.4-5 Header files and a static library for Python
$ dpkg -L python2.3-dev
....
/usr/lib/python2.3/distutils/README
/usr/lib/python2.3/distutils/__init__.py
....

So either there's something strange with your version of the package
(download a new one), or you didn't look carefully enough.

- Dirk

Jul 18 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
1
by: Kent Tenney | last post by:
Howdy, I did; # apt-get install python2.2 # python Python 2.2.1 .... >>>
1
by: Sridhar R | last post by:
I learnt that distutils can be used to package python modules and packages. Fine it does that well. Suppose I am writing an python application (not package or module), and suppose that I am...
1
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: ...
1
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do...
0
by: Maarten Sneep | last post by:
I'm trying to build PyBison on Mac OS X, and I'm running into some problems with the distutils. Just for starters: PyBison requires Pyrex. This is not a problem, and Pyrex seems to work without...
6
by: ajikoe | last post by:
Hello I tried to combine c++ and python together. So I follow from this website: http://kortis.to/radix/python_ext/ I have this code: # prmodule.c static PyObject *pr_isprime(PyObject *self,...
0
by: newbie73 | last post by:
OS: Vista Python 2.5.2.2 (ActiveState Software Installation) Running latest Cygwin release The error generated is pasted below - please help. - Luis ***************************************
1
by: rocksportrocker | last post by:
Hi, I've got some problems with the following setup.py file. using "python setup.py install -f" it shows that wrap_ica.so is copied to /usr and not to ..../site-packages as I assumed. What am I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.