Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Cameron Blackwood

"=?ISO-8859-1?Q?Ren=E9_Dudfield?=" writes:
  |
  | Hi,
  | 
  | I've updated the http://www.pygame.org/download.shtml page with the
  | Suse download details.

Um. Are you talking about Suse enterprise (the $$ one) or opensuse
(the free one)?

They are different projects like fedora and redhat.

opensuse

For opensuse, you need to add some more repositories:
   http://en.opensuse.org/Additional_YaST_Package_Repositories

According to my peek around, the cd-2 of 10.2 has libsdl.

Pygame is available from
  http://download.opensuse.org/distribution/10.2/repo/oss/
or pretty well any opensuse mirror from the 'oss' tree (there
is 'non-oss' and other trees too)


SUSE

For suse ($$) you probably need the link you currently have to get it
from the novell site.



  | 
  | If that's the wrong page to link to, please let me know.
  | 
  | Cheers,
  | 

--
 / `Rev Dr'   cam  at darkqueen.orgRoleplaying, virtual goth \
<   http://darkqueen.orgPoly, *nix, Python, C/C++, genetics, ATM  >
 \  [+61 3] 9809 1523[h] skeptic, Evil GM(tm). Sysadmin for hire /
  -- Random Quote --
The first Rotarian was the first man to call John the Baptist "Jack."
-- H.L. Mencken


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread René Dudfield
Hi,

I've updated the http://www.pygame.org/download.shtml page with the
Suse download details.

If that's the wrong page to link to, please let me know.

Cheers,


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
The massive repository is perfect. It has everything I need!
All problems solved.
wxPython too! although some of the files there are old. Like PyOpenGL.
That's another problem too.

But thanks so much guys for the time spent helping me.
Thanks a lot.


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Laura Creighton

Does this help?

http://www.novell.com/products/linuxpackages/suselinux/python-pygame.html

I don't run Suse, but on occasion I grab packages from novell and
make them work on other distros.

Laura


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread James Paige
On Thu, Aug 02, 2007 at 09:22:16PM +0200, Jason Ward wrote:
>ok the command worked.
>It installed sdl.src.rpm
>But sdl-config still doesn't work.
>On windows it's a good idea to restart once you've installed something, is
>linux the same?

No. Don't reboot unless you install a new kernel.

>My suse computer doesn't have internet access, I am still trying to get it
>to use this pc's , windows, internet through my lan cable. But I'm still a
>linux beginner and it won't work. So using yast to download packages
>isn't possible.

Ew... A Linux computer without an internet connection is no fun at all. 
:(

>Isn't there a site which has this stuff so I can download it from another
>pc?

Here is where YaST gets the rpm files that it installs:
http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/

You will find python-pygame in that list :)

---
James Paige


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
ok the command worked.
It installed sdl.src.rpm
But sdl-config still doesn't work.
On windows it's a good idea to restart once you've installed something, is
linux the same?
My suse computer doesn't have internet access, I am still trying to get it
to use this pc's , windows, internet through my lan cable. But I'm still a
linux beginner and it won't work. So using yast to download packages
isn't possible.
Isn't there a site which has this stuff so I can download it from another
pc?


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Dave LeCompte (really)
"Jason Ward" <[EMAIL PROTECTED]> wrote:
> Oh wait, I found it

Could you tell Phil what's required to get PyGame running on SUSE, so that
the PyGame website can reflect this?

I know that you're not the first one to try to install PyGame on SUSE.

-Dave LeCompte


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Michael George
Another thing you can do is use rpm to compile the rpm file (I use 
fedora/redhat so ymmv)


rpmbuild --rebuild sdl.src.rpm

which should output both the sdl-dev and sdl rpms in some useful place.

--Mike

Jason Ward wrote:

hahahaa
I can't believe it.
I didn't know. I thought I had to install from source if there was no 
rpm or run file.
 
Thanks so much.

I've been installing almost everything from source!
 
But opensuse.org  only has suse. No other packages?

Or is there another suse site for packages?




Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread James Paige
On Thu, Aug 02, 2007 at 08:40:43PM +0200, Jason Ward wrote:
>hahahaa
>I can't believe it.
>I didn't know. I thought I had to install from source if there was no rpm
>or run file.
> 
>Thanks so much.
>I've been installing almost everything from source!

I had the same experience back when I was first learning Linux. I 
installed hundreds of packages from source (and learned a lot about 
compiling!) before I discovered that everything I could ever want was 
only an "apt-get install" away

>But opensuse.org only has suse. No other packages?
>Or is there another suse site for packages?

Hmmm. I have very little SUSE experience, but ...*search*... I think 
this page will help you:

http://en.opensuse.org/YaST_Software_Management

---
James Paige


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
Oh wait, I found it


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
hahahaa
I can't believe it.
I didn't know. I thought I had to install from source if there was no rpm or
run file.

Thanks so much.
I've been installing almost everything from source!

But opensuse.org only has suse. No other packages?
Or is there another suse site for packages?


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Bob the Hamster
On Thu, Aug 02, 2007 at 08:15:07PM +0200, Jason Ward wrote:
>No. I couldn't find an rpm for suse on pygame.org
>I just want pygame.
> 

Ah! I understand. In the linux world, the first place you should look 
for a package is NOT on the program's website. if you want pygame on 
SUSE, check SUSE's website (or package manager) first before you check 
pygame.org. Similarly if you wanted pygame on Debian you would check 
debian's package manager first. Pygame on Fedora, check fedora's 
package manager first. Gentoo, check gentoo's ebuild system first.

The only reasons you should be downloading the linux source code 
directly from pygame.org and compiling it yourself are:

A)  Your Linux distribution doesn't have pygame

B)  Your Linux distribution only has an old version and you need a newer 
version

C)  You want to change the pygame source code (for example to add 
features or fix bugs)

D)  You like doing things the hard way ;)

---
James Paige


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
No. I couldn't find an rpm for suse on pygame.org
I just want pygame.


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread James Paige
On Thu, Aug 02, 2007 at 07:56:03PM +0200, Jason Ward wrote:
>It says sdl-config not found.
> 
>But I installed  sdl.src.rpm
>and I have the source

Oh, I see. the .src.rpm just puts the sdl source code on your hard 
drive, but does not install anything. You almost certainly don't want 
that one. Having the source code rpm installed and having the -dev rpm 
installed are not the same thing.

You said you were using SUSE Linux, right? I am almost certain that SUSE 
has a simple python-pygame rpm you can install. Did you have a specific 
reason why you wanted to install from source?

---
James Paige


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
It says sdl-config not found.

But I installed  sdl.src.rpm
and I have the source


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread James Paige
On Thu, Aug 02, 2007 at 07:29:59PM +0200, Jason Ward wrote:
>Thanks guys.
>The main question is still getting pygame installed.
>If I go to the console and type sdl
>it says unkown command.

sdl is not a command, it is a library. However, the sdl-dev package does 
contain a command called sdl-config which you can use to check and see 
if you have installed sdl correctly. Type the following:

  sdl-config --cflags

And let us know what it says.

---
James Paige


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Jason Ward
Thanks guys.
The main question is still getting pygame installed.
If I go to the console and type sdl
it says unkown command.
But I have every single package available from the sdl site installed. EVERY
ONE OF THEM
but when I run setup.py it tells me I don't have sdl-dev installed, I made
sure that I have that and it still complains.

Why is it so hard to install any python package, all others are easy.


Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Michael George
Richard is right if you want to run your program from the commandline by 
typing


./example.py

but if so you also need to set the executable bit by running

chmod u+x example.py

(read "change the mode to add eXecutable permissions for the current 
User on example.py).  On linux when you run a non-executable program as 
an executable, the shell reads the first line if it starts with #! and 
then runs that with the file as input.


The other way you can run it is by simply typing

python example.py

Then you don't need to specify the permission bits or add the #! line.

--Mike

Richard Goedeken wrote:

Jason,

In order to make python scripts executable, put a line like this at the
top of the file:

#!/usr/bin/env python

You can also call it directly, like this:

#!/usr/bin/python

For your sdl-dev problem, run 'sdl-config --cflags' from the command
line.  There should be an option printed which says '-I/usr/include/SDL'
 though the path may be slightly different.  Try to see if the header
file is there by doing an 'ls -l /usr/include/SDL/SDL.h' (substituting
the path returned in the previous command if it was different).  If
either of these steps don't work, that means that your sdl-dev package
is not installed.

Richard


Jason Ward wrote:
  

Hi
I downloaded pygame source and I've been trying to install it on my suse
10.2 linux.
It says I need sdl-dev when I run setup.py from the console with the
command, python setup.py install

So I downloaded, the source of sdl and the src.rpm and the dev rpm and
the runtime.
But with any or all of these installed I still get the error message.
You should put a link on the site for the required sdl files.

PS. How do I make python scripts executable on linux? (My first time
using linux)
How do I get it so that I can open with IDLE?
running scripts from console is a mission

Thanks guys





Re: [pygame] pygame- Installing pygame on suse linux from source

2007-08-02 Thread Richard Goedeken
Jason,

In order to make python scripts executable, put a line like this at the
top of the file:

#!/usr/bin/env python

You can also call it directly, like this:

#!/usr/bin/python

For your sdl-dev problem, run 'sdl-config --cflags' from the command
line.  There should be an option printed which says '-I/usr/include/SDL'
 though the path may be slightly different.  Try to see if the header
file is there by doing an 'ls -l /usr/include/SDL/SDL.h' (substituting
the path returned in the previous command if it was different).  If
either of these steps don't work, that means that your sdl-dev package
is not installed.

Richard


Jason Ward wrote:
> Hi
> I downloaded pygame source and I've been trying to install it on my suse
> 10.2 linux.
> It says I need sdl-dev when I run setup.py from the console with the
> command, python setup.py install
> 
> So I downloaded, the source of sdl and the src.rpm and the dev rpm and
> the runtime.
> But with any or all of these installed I still get the error message.
> You should put a link on the site for the required sdl files.
> 
> PS. How do I make python scripts executable on linux? (My first time
> using linux)
> How do I get it so that I can open with IDLE?
> running scripts from console is a mission
> 
> Thanks guys