I'm still running Slackware-11.0 with Python-2.4 on my main
workstation/server, but I have quite a conglomeration of old, almost new,
and new wxPython files in various filesystems and directories. I'd like to
clean out the cruft and have the latest (2.8.6.0) in
/usr/lib/python2.4/site-packages/wxpython. Not being confident that I know
what files are needed where, I'd appreciate help.
The currently running version is 2.8.0.1 and that's located in
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/.
I just finished building 2.8.6.0 following the build instructions so it's
in /opt/wx/2.8/.
However, I have old wx-config files in /usr/bin, /usr/local/bin, and
/usr/lib/python2.4/site-packages/wxpython/bin/. I also have
/usr/lib/python2.4/wx-2.6-gtk2-ansi/,
/usr/lib/python2.4/site-packages/wxaddons/. and
/usr/lib/python2.4/site-packages/wxpython/.
There are wx.pth file in several directories in the above, and
wxversion.py dating from three years ago.
Can I clean out everything but the
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/ directory and the
wx.pth that points to that directory? If so, into what directory should I
move all the 2.8.6.0 files to replace the 2.8.0.1 installation that
currently works?
TIA,
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I’m still running Slackware-11.0 with Python-2.4 on my main
workstation/server, but I have quite a conglomeration of old, almost new,
and new wxPython files in various filesystems and directories. I’d like to
clean out the cruft and have the latest (2.8.6.0) in
/usr/lib/python2.4/site-packages/wxpython. Not being confident that I know
what files are needed where, I’d appreciate help.
did you install all those old versions using installpkg? if so, doing a
"removepkg /var/log/packages/package-name and doing an installpkg to a
new wxPython package should do. I dont recommend removing the files
manually. you will tend to forget something or could have delete
something that you shouldn’t be deleting.
The currently running version is 2.8.0.1 and that’s located in
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/.
I just finished building 2.8.6.0 following the build instructions so it’s
in /opt/wx/2.8/.
this should go to /usr/lib/python2.4/site-packages/ and not in /opt/wx/2.8/ the setup above will most likely not work. I have a build script for 2.8.6.0
but its for slack12.0 ill check if i can make one for slack11.0.
However, I have old wx-config files in /usr/bin, /usr/local/bin, and
/usr/lib/python2.4/site-packages/wxpython/bin/. I also have
/usr/lib/python2.4/wx-2.6-gtk2-ansi/,
/usr/lib/python2.4/site-packages/wxaddons/. and
/usr/lib/python2.4/site-packages/wxpython/.
There are wx.pth file in several directories in the above, and
wxversion.py dating from three years ago.
Can I clean out everything but the
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/ directory and the
wx.pth that points to that directory? If so, into what directory should I
move all the 2.8.6.0 files to replace the 2.8.0.1 installation that
currently works?
did you install all those old versions using installpkg?
Probably not. I do not recall exactly how versions 2.4 and 2.6 were
installed. Otherwise, running 'upgradepkg ...' would have done a clean
replacement.
if so, doing a "removepkg /var/log/packages/package-name and doing an
installpkg to a new wxPython package should do. I dont recommend removing
the files manually. you will tend to forget something or could have delete
something that you shouldn't be deleting.
I have a wxpython.SlackBuild script from France, but I'm not sure if its
prefix is where I really want the installation.
this should go to /usr/lib/python2.4/site-packages/ and not in
/opt/wx/2.8/ the setup above will most likely not work. I have a build
script for 2.8.6.0but its for slack12.0 ill check if i can make one for
slack11.0.
Thank you. I followed the build/install instructions on the wxPython
download page which is why I made /opt/wx/2.8.
We need both wxWidgets and wxPython, and I've no idea what executables are
needed nor where any files should be other than in
/usr/lib/python2.4/site-packages.
I'd like to clean out all the files/directories that aren't needed, but I
don't now know what's safe to remove. That's why it's time to clean up the
mess.
Rich
···
On Tue, 2 Oct 2007, Bertrand Son Kintanar wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Thank you. I followed the build/install instructions on the wxPython
download page which is why I made /opt/wx/2.8.
As stated in that file those instructions are what is recommended for test builds. There is a link in the 2nd paragraph to the INSTALL doc for instructions on how to adapt the build instructions to be for a regular install instead.
That said, it is definitely a better practice to use the distro's package install tools for anything that will be installed to a /usr prefix.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
As stated in that file those instructions are what is recommended for test
builds. There is a link in the 2nd paragraph to the INSTALL doc for
instructions on how to adapt the build instructions to be for a regular
install instead.
Robin,
I missed the importance of that link. I'll go look at it.
That said, it is definitely a better practice to use the distro's package
install tools for anything that will be installed to a /usr prefix.
That's what I'm working on. I found a couple of wxpython.SlackBuild
scripts, but they're not working properly. Getting one to work is a high
priority.
Thanks,
Rich
···
On Tue, 2 Oct 2007, Robin Dunn wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I'd appreciate clarification. Is wxGTK incorporated into wxWidgets? If I
have the former, do I need the latter? I'm trying to understand the
relationships among these two and wxPython.
Rich
···
On Tue, 2 Oct 2007, Rich Shepard wrote:
We need both wxWidgets and wxPython, ...
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I'd appreciate clarification. Is wxGTK incorporated into wxWidgets? If I
have the former, do I need the latter? I'm trying to understand the
relationships among these two and wxPython.
wx supports multiple back-ends -- you need one of them. wxGTK is the back-end built on the GTK toolkit, and the most common and robust on *nix + X11 systems (really the only one really production-ready for *nix). The other primary ones are wxMSW and wxMac, for Windows and Mac.
wxPython is a wrapper around wxWidgets, so if you have wxPython, you have one of wxMac, wxGTK, or wxMSW, and it you're running linux, you have wxGTK.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Thank you. That refresher helps as I try to get a working
wxpython.SlackBuild.
Rich
···
On Wed, 3 Oct 2007, Christopher Barker wrote:
wx supports multiple back-ends -- you need one of them. wxGTK is the
back-end built on the GTK toolkit, and the most common and robust on *nix
+ X11 systems (really the only one really production-ready for *nix). The
other primary ones are wxMSW and wxMac, for Windows and Mac.
wxPython is a wrapper around wxWidgets, so if you have wxPython, you have one of wxMac, wxGTK, or wxMSW, and it you're running linux, you have wxGTK.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
so sorry for the delay rich, i was preoccupied for the past days.
here are the slack.build for wxpython and wxgtk. but they lack the slack.desc. just change the version in the slackbuild when building. and don’t forget to do a chmod +x to make these slackbuild executable.
an example of a slack-desc is as follows. copy these to a text file and save it as slack-desc.
HOW TO EDIT THIS FILE:
The “handy ruler” below makes it easier to edit a package description. Line
up the first ‘|’ above the ‘:’ following the base package name, and the ‘|’ on
the right side marks the last column you can put a character in. You must make
exactly 11 lines for the formatting to be correct. It’s also customary to
wxPython: wxPython
wxPython:
wxPython: wxPython is a sophisticated cross-platform C++
wxPython: framework for writing advanced GUI applications using
wxPython: native controls where possible.
wxPython:
wxPython: Packaged by Bertrand Son Kintanar admin@b3rx.com
to build from source, you create a wxPython directory and save the wxpython source-code, wxpython.SlackBuild and the slack-desc to that directory. and run the wxpython.SlackBuild under the CLI. you can download the source-code of the wxpython at wxpython.org make sure the version of the sourcecode and the version written in the slackbuild are the same. or else the build will fail.
after building, do the same with wxGTK. I don’t have the slack-desc of wxGTK so just check over at wxwidgets’ website.
so sorry for the delay rich, i was preoccupied for the past days.
Bertrand,
Apologies not necessary. Thanks for responding.
here are the slack.build for wxpython and wxgtk. but they lack the
slack.desc. just change the version in the slackbuild when building. and
don't forget to do a chmod +x to make these slackbuild executable.
I can write the slack-desc files; since almost all the packages that I
build are used only locally, I don't worry about providing content for that
file or for slack-requires.
Before switching to using .SlackBuilds last year I used checkinstall to
make packages from source. Did that with Red Hat the first six years, with
Slackware since 2003. The SlackBuilds are more robust and consistent.
This weekend I'll be upgrading to Slackware-12.0 and the pkgtools have
been improved, including (apparently) an upgraded replacement for slaptget.
Thanks for the working files.
Rich
···
On Fri, 5 Oct 2007, Bertrand Son Kintanar wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863