Skip to content

Commit 49f6ba3

Browse files
committed
Switch to setuptools
1 parent 39892fb commit 49f6ba3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

module/livewires/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@
2727
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2828
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

30+
__version__ = '2.1'
31+
3032
from beginners import *
3133
# That was well worth the effort of the licence, wasn't it? :-)

module/setup.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
#!/usr/bin/env python
22

3-
from distutils.core import setup
4-
import sys
5-
6-
# Default to installing if no commands are given
7-
if len (sys.argv) == 1:
8-
script_args = ["install"]
9-
else:
10-
script_args = sys.argv [1:]
3+
import glob
4+
from setuptools import setup
5+
import re
116

127

8+
version = re.search("__version__ = '([^']+)'",
9+
open('livewires/__init__.py').read()).group(1)
1310

1411
setup (name = "LiveWires",
15-
version = "2.1",
12+
version = version,
13+
install_requires = ['pygame'],
1614
description = "LiveWires package provides resources for people learning Python. It is intended for use with the LiveWires Python Course",
1715
author = "Richard Crook, Gareth McCaughan, Paul Wright, Rhodri James, Neil Turton",
1816
author_email = "python@livewires.org.uk",
1917
url = "http://www.livewires.org.uk/python/",
2018
packages = ['livewires'],
21-
script_args = script_args
2219
)
2320

0 commit comments

Comments
 (0)