wxPython versus wxWidgets
Mojca Miklavec
mojca at macports.org
Thu Aug 15 05:11:01 PDT 2013
On Thu, Aug 15, 2013 at 2:04 AM, Ryan Schmidt wrote:
> On Aug 14, 2013, at 09:17, Mojca Miklavec wrote:
>> On Wed, Aug 14, 2013 at 3:29 PM, Michael Dickens wrote:
>>> Other questions:
>>>
>>> + Why set "dist_subdir ${distname}/${version}"? Why not just
>>> ${distname}?
>>
>> Simply because that's the way it's set up in current
>> wxWidgets/wxWidgets30/wxWidgets-devel Portfiles and the new ports
>> would use the existing distfiles. If that sounds like deprecated
>> behaviour, it can easily be changed.
>>
>> I checked and one of my other ports, gnuplot, also uses this strategy,
>> mainly because the pdf documentation always has the same name (it
>> comes from a different location, but under the same filename).
>
> Stealth updates are one reason why we change a port's dist_subdir; sharing distfiles with other ports, to avoid users having to download (or our mirrors having to mirror) the same file multiple times is another. If the setting you've chosen will result in users and mirrors not having to download a second copy of a file they already have, then by all means please keep it, but consider changing it back to the default if and when the ports are updated to a version that has not yet been fetched by anybody.
OK, this makes perfect sense. So I won't change dist_subdir of
wxWidgets until the next version of wxWidgets gets released. OK, users
will then end up with something like
/opt/local/var/macports/distfiles/wxWidgets/2.8.12/wxWidgets-2.8.12.tar.bz2
/opt/local/var/macports/distfiles/wxWidgets/2.9.0/wxWidgets-2.9.0.tar.bz2
...
/opt/local/var/macports/distfiles/wxWidgets/2.9.5/wxWidgets-2.9.5.tar.bz2
/opt/local/var/macports/distfiles/wxWidgets/wxWidgets-2.9.6.tar.bz2
but so be it.
But I have a question about wxPython. The port py-wxpython30 seems to
store the file(s) to
/opt/local/var/macports/distfiles/py-wxpython30/wxPython-src-2.9.4.0.tar.bz2
and py-wxpython-devel seems to store *the same* file to
/opt/local/var/macports/distfiles/python/wxPython-src-2.9.4.0.tar.bz2
The first one (py-wxpython30) seems a bit unfortunate to keep because
py-wxpython30 will be gone (and so will py-wxpython). Many py-foo
ports store the files to /opt/local/var/macports/distfiles/py-foo, but
I've seen some in /opt/local/var/macports/distfiles/python. I don't
know why, but I do have both
/opt/local/var/macports/distfiles/py-numpy/numpy-1.6.1.tar.gz
/opt/local/var/macports/distfiles/python/numpy-1.6.1.tar.gz
for example.
But to continue ...
The port py-wxpython stores the file(s) to
/opt/local/var/macports/distfiles/py-wxpython/wxPython-src-2.8.12.1.tar.bz2
and wxWidgets-python stores *the same* file to
/opt/local/var/macports/distfiles/wxWidgets-python/wxPython-src-2.8.12.0.tar.bz2
(ok, not exactly the same because "the nomaintainer" forgot to update it)
while py26-wxpython stores what's also supposed to be the same file to
/opt/local/var/macports/distfiles/python/wxPython-src-2.8.10.1.tar.bz2
Plus, I'm actually surprised to see that 2.8.10 and 2.8.12 work with
each other: py26-wxpython namely depends on wxWidgets-python.
Which one should be used in long term and which one should I keep now?
And how exactly should I set "dist_subdir" inside
wxPython(-from-wxWidgets)-3.0 which will share the sources with
py-wxpython-3.0? Given the zillions of different locations that
apparently store the same file I'm not even sure if the argument "use
the same location that is being used at the moment" can be applied in
a meaningful way.
I was first planning to keep using
/opt/local/var/macports/distfiles/wxWidgets/2.8.12
/opt/local/var/macports/distfiles/wxWidgets/2.9.5
/opt/local/var/macports/distfiles/wxWidgets/2.9.6
and in the same spirit use
/opt/local/var/macports/distfiles/wxPython/2.9.4.0
but I can easily change it to whatever feels more appropriate.
Please advise.
Thank you,
Mojca
More information about the macports-dev
mailing list