LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2003, 03:25 AM   #1
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Rep: Reputation: 15
what to do with ".py"


yesteatay a friend here sent me the wxPython, but i dont know what to do with it.
This is my first time to find files ending with .py.
what can I do with .py?
 
Old 07-26-2003, 03:32 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
i don't use python but it looks like a python source file. try opening it up in a plain text editor.

http://www.jasspa.com/me/m9typ033.html
 
Old 07-26-2003, 03:49 AM   #3
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
It is said that Python and wxPython are needed to install BT to download. But I dont know how to install wxpython either the Bt.

I can not get useful info from the .py
 
Old 07-26-2003, 04:08 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what distro are you using? i've got 4 different versions of python on rh 7.3. i'm sure python actually comes with your distro.

try the command:

python --help
 
Old 07-26-2003, 04:31 AM   #5
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
I am using redflag linux.

Yes,Python comes with my linux, but i want to install wxPython. And I dont know how to install it.
 
Old 07-26-2003, 06:47 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you got the wxPython sources right?

http://prdownloads.sourceforge.net/w...2.4.1.2.tar.gz

you've got all the other requirements also, right? make sure you got those.

according to the build instructions @ http://www.wxpython.org/BUILD.unix.txt
there are lines in the quote in bold. those are examples of the python command to build and install wxpython. they are only examples given the type of options you want. you will not run all three commands. you'll only run the python command once with the options you want to have set.

some of the flags are in italics in the below quote.

Quote:
C. Change to the root wxPython directory and look at the setup.py
file. This is the script that configures and defines all the
information that Distutils needs to build wxPython. There are some
options near the begining of the script that you may want or need
to change based on your system and what options you have selected
up to this point, (sources from tar.gz or from CVS, etc.) You can
either change these flags directly in setup.py or supply them on
the command-line.

BUILD_GLCANVAS Set to zero if you don't want to build the
Open GL canvas extension module. If you don't
have OpenGL or compatible libraries then you'll
need to set this to zero.

BUILD_OGL Set to zero if you don't want to build the
Object Graphics Library extension module.

BUILD_STC Set to zero if you don't want to build the
wxStyledTextCtrl (the Scintilla wrapper)
extension module.

USE_SWIG If you have edited any of the *.i files you
will need to set this flag to non-zero so SWIG
will be executed to regenerate the wrapper C++
and shadow python files.

etc.



D. To build and install wxPython you simply need to execute the
setup.py script. If you have more than one version of Python
installed, be sure to execute setup.py with the version you want to
build wxPython for. Depending on the permissions on your
site-packages directory you may need to be root to run the install
command.

python setup.py build install

If you need to change any of the build flags that can also be done
on the setup.py command line, like this:

python setup.py BUILD_GLCANVAS=0 build install

If you are using GTK 2.x then you'll want to add these flags:

python setup.py WXPORT=gtk2 UNICODE=1 build install

If you would like to install to someplace besides the Python
site-packages directory (such as to your home directory) then you
can add "--root=<path>" after the "install" command. To use
wxPython like this you'll need to ensure that the directory
containing wxPyrthon is contained in in the PYTHONPATH environment
variable.

Last edited by megaspaz; 07-26-2003 at 06:52 AM.
 
Old 07-26-2003, 10:18 AM   #7
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
there is no setup.py in the files I download.

and there is nothing in the files you gave
(http://prdownloads.sourceforge.net/...-2.4.1.2.tar.gz)

anything wrong?
 
Old 07-26-2003, 10:22 AM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Puchetao

but

Good write up on python installation.

Last edited by ppuru; 07-26-2003 at 10:23 AM.
 
Old 07-27-2003, 02:19 AM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by gexiaofei
there is no setup.py in the files I download.

and there is nothing in the files you gave
(http://prdownloads.sourceforge.net/...-2.4.1.2.tar.gz)

anything wrong?
you need to pick a server. save the tarball and untar it. i downloaded it on my box and there is indeed a setup.py file.

edit: click this link. http://prdownloads.sourceforge.net/w...2.4.1.2.tar.gz

you messed up the link in the quote somehow... actually seeing it in this edit box it looks like it's possible you just copied the text from the browser page. a lot of these forums shorten the displayed url. just click the link and you'll the get the choose mirror page. or if you need to copy the address, usually something like a right-click over the displayed text > copy location (or copy link location, etc) will work better for you.

Last edited by megaspaz; 07-27-2003 at 02:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration