diff options
Diffstat (limited to 'lib/dodai')
-rw-r--r-- | lib/dodai/build/__init__.py | 23 | ||||
-rw-r--r-- | lib/dodai/build/after_install.py | 21 |
2 files changed, 42 insertions, 2 deletions
diff --git a/lib/dodai/build/__init__.py b/lib/dodai/build/__init__.py index c4989be..10d8d12 100644 --- a/lib/dodai/build/__init__.py +++ b/lib/dodai/build/__init__.py | |||
@@ -1,3 +1,22 @@ | |||
1 | # | ||
2 | # Copyright 2010 Leonard Thomas | ||
3 | # | ||
4 | # This file is part of Dodai. | ||
5 | # | ||
6 | # Dodai is free software: you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation, either version 3 of the License, or | ||
9 | # (at your option) any later version. | ||
10 | # | ||
11 | # Dodai is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with Dodai. If not, see <http://www.gnu.org/licenses/>. | ||
18 | |||
19 | |||
1 | from setuptools.command.easy_install import easy_install | 20 | from setuptools.command.easy_install import easy_install |
2 | from distutils.util import convert_path | 21 | from distutils.util import convert_path |
3 | from pkg_resources import Distribution, PathMetadata, normalize_path | 22 | from pkg_resources import Distribution, PathMetadata, normalize_path |
@@ -160,8 +179,8 @@ class AfterInstall(object): | |||
160 | class VirtualEnvDev(object): | 179 | class VirtualEnvDev(object): |
161 | 180 | ||
162 | NAME = 'devstrap.py' | 181 | NAME = 'devstrap.py' |
163 | PACKAGES = ['nose', 'virtualenv', 'ipython', 'mercurial', 'pylint'] | 182 | PACKAGES = ['nose', 'virtualenv', 'ipython', 'pylint'] |
164 | HG_URL = 'hg clone https://dodai.googlecode.com/hg' | 183 | HG_URL = 'https://dodai.googlecode.com/hg/' |
165 | HG_DEST = 'src' | 184 | HG_DEST = 'src' |
166 | AFTER_BUILD = [] | 185 | AFTER_BUILD = [] |
167 | 186 | ||
diff --git a/lib/dodai/build/after_install.py b/lib/dodai/build/after_install.py index 16c1ec6..d84739e 100644 --- a/lib/dodai/build/after_install.py +++ b/lib/dodai/build/after_install.py | |||
@@ -1,3 +1,23 @@ | |||
1 | # | ||
2 | # Copyright 2010 Leonard Thomas | ||
3 | # | ||
4 | # This file is part of Dodai. | ||
5 | # | ||
6 | # Dodai is free software: you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation, either version 3 of the License, or | ||
9 | # (at your option) any later version. | ||
10 | # | ||
11 | # Dodai is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with Dodai. If not, see <http://www.gnu.org/licenses/>. | ||
18 | |||
19 | |||
20 | |||
1 | import os | 21 | import os |
2 | from collections import namedtuple | 22 | from collections import namedtuple |
3 | from subprocess import Popen | 23 | from subprocess import Popen |
@@ -47,6 +67,7 @@ class HgClone(object): | |||
47 | self._hg_ = os.path.join(self._paths.bin, 'hg') | 67 | self._hg_ = os.path.join(self._paths.bin, 'hg') |
48 | if not os.path.exists(self._hg_): | 68 | if not os.path.exists(self._hg_): |
49 | self._easy_install('mercurial') | 69 | self._easy_install('mercurial') |
70 | self._hg_ = os.path.join(self._paths.bin, 'hg') | ||
50 | return self._hg_ | 71 | return self._hg_ |
51 | 72 | ||
52 | def __call__(self, url, dest): | 73 | def __call__(self, url, dest): |