[REQz] wxPython 2.9.4.1

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

[REQz] wxPython 2.9.4.1

Postby metallicow » May 27th, '13, 00:04

Hi I'm new here and slightly new to linux and have decided to use Mageia as my flavor of linux :)

Anyhow. The details of what I need...

wxPython 2.9.4.1 package/thingy

Currently I develop mainly on WinXP Pro SP3, and test on VitualBox for mageia.
I am a python programmer(also graphic artist) and have quite a bunch I could contribute to the project. wxPython is my gui of choice.

Google and a bunch of other projects already use the wx2.9 branch.
Pretty much 2.9.4+ is stable in my opinion and others. Have been using it for geez... long time now. Robin Dunn is just a bit laxx about packaging/stating "Official" on the website. I think this may be because he recently got on to help with qt stuff and is also working on project phoenix(wxPy3).

There are a lot of improvments/fixs already on wx2.9, I just need a *dev package per se... until robin woots official "classic".

Here is a pic running on wx2.8
Image

Metalio Bovinus
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby doktor5000 » May 27th, '13, 23:27

Until that has been updated in cauldron, you'll probably have to build/update that package yourself. Wanna give it a try?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » May 28th, '13, 17:51

Sure, why not.
Like I say, I am slightly new to linux, therefore I am not absolutely sure where everything might need to go in the end package.
The worst I could get is a import error on startup and a borked wxpython build on my VM....

hmmm..., Lets do this!
I guess there are some tools I will probably need for building my dist package right. Package template files or something on that order...?
At the moment I have the wx2.9.4.1 Source on my desktop.
Guess I'll have to build it first...reading the readme...

How would I extract or look at the contents of the wx2.8 package...?

I guess I should doc this process, so If I need to do it again, it will be rather painless. Because when 'phoenix' goes official, I probably will use it fully and cut out 'classic' wx code and will need to rebuild/test.
[WIPz EDITING]
1. Copy wxPython Source Code to desktop.
2. Open Konsole and navigate to wxPython Source Code Directory.
3. Install gnome-python-devel
4. copy lgpl.txt, licence.txt, licendoc.txt, preamble.txt to wxPython-src-2.9.4.1/docs

hmmm...stuck here atm
5. Run in Konsole... python -u setup.py build UNICODE=1 BUILD_BASE=build WX_CONFIG="/usr/local/bin/wx-config --prefix=/usr/local"
Code: Select all
WARNING: WXWIN not set in environment. Assuming '..'
sh: /usr/local/bin/wx-config: No such file or directory
sh: /usr/local/bin/wx-config: No such file or directory
sh: /usr/local/bin/wx-config: No such file or directory
sh: /usr/local/bin/wx-config: No such file or directory
sh: /usr/local/bin/wx-config: No such file or directory
Preparing CORE...
Preparing STC...
Preparing GLCANVAS...
sh: /usr/local/bin/wx-config: No such file or directory
sh: /usr/local/bin/wx-config: No such file or directory
Preparing GIZMOS...
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running build
running build_py
copying wx/__version__.py -> build/lib.linux-i686-2.7/wx
copying wx/build/build_options.py -> build/lib.linux-i686-2.7/wx/build
package init file 'wx/lib/pubsub/pubsub2/__init__.py' not found (or not a regular file)
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regular file)
package init file 'wx/lib/pubsub/pubsub2/__init__.py' not found (or not a regular file)
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -I/usr/include/ncursesw -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_REENTRANT -Iinclude -Isrc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz -I/usr/include/python2.7 -c src/helpers.cpp -o build/temp.linux-i686-2.7/src/helpers.o -O3 -pthread
In file included from src/helpers.cpp:17:0:
include/wx/wxPython/wxPython_int.h:35:19: fatal error: wx/wx.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby doktor5000 » May 28th, '13, 20:32

Well, you're already at the second step, you want to properly update wxgtk to 2.9.x first, no?

For how to compile your wx project, i can't really help you with that, except from checking if the buildrequires are met.
You're currently missing wxgtk-devel package, which contains the headers to your installed wxgtk version.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » May 29th, '13, 02:38

OK installed wxgtk-devel

Hmmm
build-wxpython.py errors out after building for awhile...

and
python -u setup.py build UNICODE=1 BUILD_BASE=build WX_CONFIG="/usr/local/bin/wx-config --prefix=/usr/local"
...is complaining about a bunch of missing header files. Some of them seem to be located in
usr/lib/wx and usr/include/wx-2.8/wx
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » May 30th, '13, 17:07

damn. hate re-formating posts...

anyway...I have gotten here

quote fro wxPy MailList

Le 29/05/2013 22:04, Metallicow a �crit :
- show quoted text -
> --
>
>
Yes successfully wxPython-2.9.1.1 on Mandriva 2010.2.
For the moment I have stopped tests with wxPython-2.9.x because my
programs don't work in unicode :'(

I modify /usr/local/wxPython-src-2.xxx/wxPython/config.py
Code: Select all
class MyUnixCCompiler(distutils.unixccompiler.UnixCCompiler):
     def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
         compiler_so = self.compiler_so
         if sys.platform == 'darwin':
             compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs)
         # Mandriva -----------------------------------------
         self.linker_so = [el for el in self.linker_so if el != '-Wl,--no-undefined']
         compiler_so = [el for el in compiler_so if el != '-Werror=format-security']
         # Mandriva -----------------------------------------
         try:
             self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
                 except DistutilsExecError, msg:
                     raise CompileError, msg


Then :

cd wxPython-src-2.xxx...
mkdir bld
cd wxPython
python build-wxpython.py --build-dir=../bld --debug --install
--installdir=/usr/lib

Hope this help you ...

--

Hugues JEAN-BAPTISTE (h...@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)


Link to MailList:
https://groups.google.com/forum/?fromgr ... Oqdp1aTM-Q

[myProgress]
well....
python build-wxpython.py BUILD_BASE=bld --debug
built successfully.

how do I install this now...
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » Sep 15th, '13, 15:20

In all respect of opinions...

My beef with linux in general is why "packagers" can't "package" a "Dev" version.
Even *I* have a heck of a time trying to...

We'll try this again with 2.9.5.0(What WE Really need anyway...).
My problem with linux in general is why "packagers" won't/can't package a "dev" version of the source?
wxPy is a rather simple package compared to most. It has been around for over 10 years and has a strong community(showed by a user in my last post).
Not sure why robin doesn't build linuxPackages for the genPop(tho, I'm sure he has his reasons...)
isn't too far beyond my imagination. I would guess the "It's not "quote" stable." answer.
Blasphemy!!! (or maybe i'm just irritated...)(It has been stable i official business for over a year)

Anyway, the get from the go install package in the repo is what i am looking for. wx2.9.5 pref.
by not doing it, hinders development, not on my part, but every wx user in general!
"Oh, it doesn't work on my rig..."
"~So, I am a wxDev also. It probably never won't ever work unless there are *three pages of instructions*~"
so let me nicely provide you with a pick...
*No, not linux this time, Windows XP. Why...? Because it WORKS!*
http://imageshack.us/a/img534/1315/hs2a.png
*Mageia does too, but the packagers are a bit lazy... you have to do everything yourself ATM...*

Mageia*They* are asking for *This* and *That*(Graphics)... on the Home page, but....
Here is a Mageia 5 Teaser... first... for mageia promotion *could be improved quite a bit*
http://www.4shared.com/archive/-5KAThDb ... _mpeg.html
*Bet they can't do that in an hour...*

So, lets, get down to the bottom point...
Can WE PLEASE *Cheese and curdles* get a "dev" package of wxPython2.9.5.0?
If this isn't the proper way to forward a message to the mageia devs, then pass the word on please. WE want a stable wx, whether *yous* don't quite call it that.

Thanks.
Metalio Bovinus
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby doktor5000 » Sep 16th, '13, 21:49

metallicow wrote:
Le 29/05/2013 22:04, Metallicow a �crit :

Then :

cd wxPython-src-2.xxx...
mkdir bld
cd wxPython
python build-wxpython.py --build-dir=../bld --debug --install
--installdir=/usr/lib


Hugues JEAN-BAPTISTE (h...@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)


[myProgress]
well....
python build-wxpython.py BUILD_BASE=bld --debug
built successfully.

how do I install this now...


Well, just install it, the instructions are right in the quote you posted. Instead of nagging around
and writing weird stuff you could be already finished if you just read the instructions.

http://www.wxpython.org/BUILD.html wrote:If you would also like to install wxWidgets and wxPython then simply add the --install flag.

You should also check the --help output of the build-wxpython.py script to see what other options are available.


If you want it packaged, file a package request: https://wiki.mageia.org/en/How_to_repor ... ge_request
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » Sep 17th, '13, 08:35

doktor5000 wrote:
Well, just install it, the instructions are right in the quote you posted. Instead of nagging around
and writing weird stuff you could be already finished if you just read the instructions.


Sorry, If my intention wasn't clear at first, but new user/inexperienced users should be able to get it though the package manager, is what I meant.
I have come along far enough that I don't have to much problems with it, just some other folks have had some problems and when responded to they are confused because they don't have much experience with dealing with raw code/building/dependencies.

doktor5000 wrote:If you want it packaged, file a package request: https://wiki.mageia.org/en/How_to_repor ... ge_request


Yes that is/was what I am wanting. At first I thought the forum was the right place for a request... Normally for most sites it is. Now I got the wiki.bugzilla bookmarked also. Thanks.
Filed a request here for 2.9.5.0
https://bugs.mageia.org/show_bug.cgi?id=11244
Is that all that is needed for the package devs to notice it or is there other request filers elsewhere such as trac or whatever?
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby doktor5000 » Sep 17th, '13, 19:55

Well, as we already have a working version of wxpython, it is available via the package manager.
As the packages are made and maintained by volunteers in their spare time, you may be ablee to comprehend that we cannot
support every possible version that some users want.

And no, there are no other request filers, we only have bugzilla. Feel free to step up as maintainer for wxpython, currently there is no maintainer for it.
https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [REQz] wxPython 2.9.4.1

Postby metallicow » Sep 19th, '13, 15:18

doktor5000 wrote:Well, as we already have a working version of wxpython, it is available via the package manager.
As the packages are made and maintained by volunteers in their spare time, you may be ablee to comprehend that we cannot
support every possible version that some users want.

And no, there are no other request filers, we only have bugzilla. Feel free to step up as maintainer for wxpython, currently there is no maintainer for it.
https://wiki.mageia.org/en/Becoming_a_Mageia_Packager


I understand the volunteer stuff. wxPython is completely volunteer.
As far as Package maintainer, well at this point, I wouldn't make a official reply as "YES", but I noticed that you are a mentor on the wiki page. So that should give you commit rights..., Right?
To summarize:
To summarize, the prerequisites are:
1. enthusiasm for the project
2. enthusiasm to learn.

I meet both of those REQz, so where do I go from here...? Are you going to offer to teach me how to properly package a pkg for mageia..?
As I said before my linux skills are newish but improving; Why "Better than average" asks the psychologist...?; "Because if I keep saying that, the average is bound to go up." replies the asked.
As far as my initial specs they are:
Code: Select all
try:
    __author__ = "Metalio Bovinus, hence Metallicow. or Mooo"
except Exception as exc:
    __author__ = SeeNextLine() or VerifyYouAreASaneHumanBeing()
    __email__ = "I IGNORE JUNKMAIL, It get's TRASHED if you are NOT known. Stop wasting the green of the earth, colorblindOne."
__spec__ = Python, Python related. wxPy is GUI of choice. Emphasis on Clean Code(Trim Trailing Whitespace) and Zen: Readability(Like a book.).
__ilovemydog__ = I dont have a cat. If your dog cant post a msg from a verbal cmd, then train better; else hire a dog trainer or your dog is deaf. "un89u8u8iujn8i9ui0o0o" *Good girl.. that's enough* :)


Also...

wx2.9.5.0 Build Notes:
===================
There are 4 files that need edited to build successfully on Mageia 3...
These are detailed here at the wxPython-users mailing list.
https://groups.google.com/forum/#!topic ... kdGqQmlWr4

Bugfix#: HeckIDontKeepCount

- Metalio Bovinus
Image
User avatar
metallicow
 
Posts: 8
Joined: May 26th, '13, 23:45

Re: [REQz] wxPython 2.9.4.1

Postby doktor5000 » Sep 19th, '13, 20:32

metallicow wrote:As far as Package maintainer, well at this point, I wouldn't make a official reply as "YES", but I noticed that you are a mentor on the wiki page. So that should give you commit rights..., Right?

Correct.

metallicow wrote:
To summarize, the prerequisites are:
1. enthusiasm for the project
2. enthusiasm to learn.

I meet both of those REQz, so where do I go from here...? Are you going to offer to teach me how to properly package a pkg for mageia..?

Well, i could offer that, but unfortunately at the moment I don't have spare time for that.
You should take a look at the wiki pages about packaging, especially the seminar webcast. https://wiki.mageia.org/en/Packaging_Seminars and https://wiki.mageia.org/en/Packagers_Howto_start
You should also have a look or two at the packaging guidelines: https://wiki.mageia.org/en/Packaging_guidelines
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron