#14342 closed enhancement (wontfix)
python25 drops modules by default, but python24 doesn't
Reported by: | ebgssth@… | Owned by: | akira@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | python | Cc: | mww@… |
Port: | python25 python24 |
Description
Python2.5 disables common modules by default, but python2.4 doesn't. See dports/lang/python25/files/patch-setup.py
# This global variable is used to hold the list of modules to be disabled. -disabled_module_list = [] +disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","readline","_curses","_curses_panel"]
IMHO, all python pors should be as similar as they can be.
Change History (12)
comment:1 Changed 17 years ago by ebgssth@…
comment:2 Changed 17 years ago by raimue (Rainer Müller)
These are provided as seperate ports. For example py25-hashlib, py25-zlib and others. I don't know what the advantage of that was, but we already had that discussion once.
Portfile writers should include correct dependencies.
comment:3 Changed 17 years ago by ebgssth@…
I think that's OK, but the thing is python24 doesn't drop these modules. It's a weird...
comment:4 follow-up: 5 Changed 17 years ago by raimue (Rainer Müller)
If we were going to change this, it would require to change dependencies in nearly all py-* ports.
comment:5 follow-up: 7 Changed 17 years ago by ebgssth@…
Replying to raimue@macports.org:
If we were going to change this, it would require to change dependencies in nearly all py-* ports.
Yes, we probably have to check py-ports that was not in py25 ports
$ port list |egrep -i '^py-' | cut -d" " -f1 | sort -u > py24 $ port list |egrep -i '^py25-' | cut -d" " -f1 | sed 's/^py25/py/' | sort -u > py25 $ wc -l py2[45] 338 py24 109 py25 447 total $ comm -2 -3 py24 py25 > py24-only $ wc -l py24-only 259 py24-only
How about create py25- ports of all 259 py24 only ports? To create py25-ports, we need to know the port need zlib or hashlib, which helps identify this py24 ports should be fixed.
comment:6 Changed 17 years ago by ebgssth@…
From a different point of view, that MacPorts has lots more python2.4 ports than python2.5's seems weird to me. (Python 2.5 is the current stable, Python 2.4 series will be no longer released anymore)
Should I open another ticket about this problem?
comment:7 Changed 17 years ago by raimue (Rainer Müller)
Replying to ebgssth@gmail.com:
Yes, we probably have to check py-ports that was not in py25 ports
No, py25-foo can have different dependencies than py-foo. I don't know what you wanted to tell us with this.
And there is no problem that we have more py-* ports than py25-* ports. We just add what people request. If nobody needs a port, but it is in the tree, it is just more work for maintainers. So if you need some port, ask for it.
PS: This kind of discussion would have been better on the mailing list.
comment:8 Changed 17 years ago by raimue (Rainer Müller)
Keywords: | python25 python24 added |
---|---|
Summary: | python25 drops modules by default, but python25 doesn't → python25 drops modules by default, but python24 doesn't |
comment:9 Changed 17 years ago by akira@…
Owner: | changed from macports-tickets@… to akira@… |
---|---|
Status: | new → assigned |
comment:10 Changed 16 years ago by dbevans (David B. Evans)
Keywords: | python25 python24 removed |
---|---|
Port: | python25 python24 added |
comment:11 Changed 16 years ago by akira@…
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Now that python 2.6 is released, I think it isn't worth working on this issue. Closing.
comment:12 Changed 16 years ago by (none)
Milestone: | Port Enhancements |
---|
Milestone Port Enhancements deleted
If there's a reason, please make it clear by leaving comments about that on the patch file.