aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSix <unknown>2010-12-11 18:47:10 -0500
committerSix <unknown>2010-12-11 18:47:10 -0500
commit0f54ee4428ba4057a0d8ba56868278490efea71f (patch)
tree4ad8cbcf0954bb86dfc8bd6526cc653ea44e68ca
parent797a5819e43b1fe35a7ef21afb9810d37e496069 (diff)
downloaddodai-macsupport-0f54ee4428ba4057a0d8ba56868278490efea71f.tar.bz2
dodai-macsupport-0f54ee4428ba4057a0d8ba56868278490efea71f.tar.xz
dodai-macsupport-0f54ee4428ba4057a0d8ba56868278490efea71f.zip
added copyright info
-rw-r--r--lib/dodai/build/__init__.py23
-rw-r--r--lib/dodai/build/after_install.py21
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
1from setuptools.command.easy_install import easy_install 20from setuptools.command.easy_install import easy_install
2from distutils.util import convert_path 21from distutils.util import convert_path
3from pkg_resources import Distribution, PathMetadata, normalize_path 22from pkg_resources import Distribution, PathMetadata, normalize_path
@@ -160,8 +179,8 @@ class AfterInstall(object):
160class VirtualEnvDev(object): 179class 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
1import os 21import os
2from collections import namedtuple 22from collections import namedtuple
3from subprocess import Popen 23from 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):