Merge lp:~exarkun/game/minimal-setup.py into lp:game

Proposed by Jean-Paul Calderone
Status: Merged
Approved by: Jean-Paul Calderone
Approved revision: 51
Merged at revision: 50
Proposed branch: lp:~exarkun/game/minimal-setup.py
Merge into: lp:game
Diff against target: 57 lines (+34/-8)
2 files modified
README (+13/-8)
setup.py (+21/-0)
To merge this branch: bzr merge lp:~exarkun/game/minimal-setup.py
Reviewer Review Type Date Requested Status
Jean-Paul Calderone Approve
Review via email: mp+238830@code.launchpad.net

Description of the change

Update installation recommendations to match modern practices. Also add the necessary artifacts to support this.

To post a comment you must log in.
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

< glyph> exarkun: land it!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-09-06 12:50:35 +0000
3+++ README 2014-10-19 18:24:01 +0000
4@@ -44,14 +44,19 @@
5 sudo apt-get install python-twisted python-pygame python-numpy python-opengl
6
7 For unpackaged libraries, or on other platforms, you can install using
8-easy_install. For information on how to get easy_install, see:
9- http://packages.python.org/distribute/easy_install.html
10-
11-To install each of the prerequisite packages, run easy_install with
12-the package name as its argument. For example, to install Twisted:
13- easy_install twisted
14-or, on UNIX-like systems:
15- sudo easy_install twisted # To install for all users.
16+pip. For information on how to get pip, see:
17+ http://pip.readthedocs.org/en/latest/installing.html
18+
19+You may also want to create a Python virtualenv into which to install Game.
20+See http://docs.python-guide.org/en/latest/dev/virtualenvs/ for more
21+information about virtualenv.
22+
23+If you have virtualenv installed, you can create a new environment and install
24+Game into it like this:
25+ virtualenv ~/game_environment
26+ . ~/game_environment/bin/activate
27+ cd path-to-game-checkout
28+ pip install .
29
30
31 TESTING
32
33=== added file 'setup.py'
34--- setup.py 1970-01-01 00:00:00 +0000
35+++ setup.py 2014-10-19 18:24:01 +0000
36@@ -0,0 +1,21 @@
37+#!/usr/bin/env python
38+
39+from setuptools import setup, find_packages
40+
41+setup(
42+ name="game",
43+ description="""\
44+This is a game. It uses Twisted, pygame, and OpenGL.
45+""",
46+ version="0",
47+ author="The Game Team",
48+ license="BSD",
49+ packages=find_packages(),
50+ install_requires=[
51+ "twisted",
52+ "epsilon",
53+ "pyOpenGL",
54+ "numpy",
55+ "pygame",
56+ ],
57+)

Subscribers

People subscribed via source and target branches

to status/vote changes: