forked from yingted/Myro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (55 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# setup.py
from distutils.core import setup
from distutils.file_util import copy_file
import sys
from myro import __VERSION__
#windows installer:
# python setup.py bdist_wininst
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
setup(
name="myro",
description="My Robot Python Exploration Library, from the IPRE",
version= __VERSION__,
author="Doug Blank, and the IPRE",
author_email="[email protected]",
url="http://myro.roboteducation.org/",
packages=['myro', 'myro.robots', 'myro.worlds', 'myro.globvars'],
license="Shared Source",
long_description="Tools for exploring robotics in education",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'License :: Shared Source',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows :: Mac',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
],
)
import os
sitepath = []
idlepath = []
use_idle = False
if use_idle:
import idlelib
sitepath = idlelib.__file__.split(os.sep)[:-2]
idlepath = idlelib.__file__.split(os.sep)[:-1]
idlepath = os.sep.join(idlepath)
if 'install' in sys.argv:
copy_file("misc" + os.sep + "ScriptBinding.py", idlepath)
copy_file("misc" + os.sep + "config-extensions.def", idlepath)
sitepath.append("site-packages")
sitepath = os.sep.join(sitepath)
idlepath = os.sep.join(idlepath)
if 'install' in sys.argv:
copy_file("myro" + os.sep + "graphics.py", sitepath)
else:
print "on install, will:"
print " copy misc" + os.sep + "ScriptBinding.py" + " -> "+ idlepath
print " copy misc" + os.sep + "config-extensions.def" + " -> " + idlepath
print " copy myro" + os.sep + "graphics.py" + " -> " + sitepath