0

I am looking for version (custom/beta?) of portable python that is python 3.x and includes pygame. I know pygame hasn't been fully converted to 3.x yet, but for what I need it for it works perfectly.

pluke
  • 3,832
  • 5
  • 45
  • 68
  • not sure why this is being down voted. If it's in the wrong forum or written in the wrong way please let me know. If the answer is "do it yourself" then cool, but just checking that no-one has already solved this issue – pluke Nov 04 '12 at 22:51
  • do you mean that you want to create a standalone executable as [cx_Freeze](http://cx-freeze.sourceforge.net/) does? – jfs Nov 06 '12 at 14:51
  • more of a portable dev environment – pluke Nov 06 '12 at 22:04
  • What OSes should it support (Windows, OS X, Linux)? – jfs Nov 06 '12 at 22:13

3 Answers3

1

Install Pygame, then take your entire Python folder and put it where you want it to go.

If you mean you want to be able to use python (filename).py on the terminal, then you will have to change the PATH variable in the terminal, or add the shebang line #!usr\bin\python onto your programs.

beary605
  • 802
  • 2
  • 9
  • 18
0

Maybe I have not fully understood what you're after. Still, let me try to answer:

The release of Python 3.3 now includes VirtualEnv in the standard library, now called venv.

So in a command line you can type

/path/to/python3.3/bin/pyvenv /path/to/new/virtual/environment

To create a folder with links to your python 3.3 installation. That new folder makes it easy to install any PyPi packages into, for example:

cd /path/to/new/virtual/environment
./bin/pip install adventure

to install Adventure.

You then probably want to follow PyGames documentation to install the Py3 branch

Then, like user beary605 already answered you can bundle up your whole virtual environment of python by tar'ing, rsync'ing or whatever means of distribution you envision.

There's also an older question covering Python 3 and Pygame compatibility on Mac OS.

Community
  • 1
  • 1
cfi
  • 10,915
  • 8
  • 57
  • 103
0

To my knowledge there is nothing like what you are looking for available, however with a little DIY you might be able to alter a version of Portable Python (it's not updated anymore, but there's a version for Python 3). By saying this I am presuming you want to operate this from a flash drive. Depending on what Windows you are running the steps might be a bit different, but I'm guessing they would be similar to the steps in this thread: pygame not working with portable python

Community
  • 1
  • 1