Calculates all the storage and build dirs, and makes sure the directories exist where necessary.
(self, storage_dir)
| 155 | return join(self.python_installs_dir, self.bootstrap.distribution.name, arch) |
| 156 | |
| 157 | def setup_dirs(self, storage_dir): |
| 158 | '''Calculates all the storage and build dirs, and makes sure |
| 159 | the directories exist where necessary.''' |
| 160 | self.storage_dir = expanduser(storage_dir) |
| 161 | if ' ' in self.storage_dir: |
| 162 | raise ValueError('storage dir path cannot contain spaces, please ' |
| 163 | 'specify a path with --storage-dir') |
| 164 | self.build_dir = join(self.storage_dir, 'build') |
| 165 | self.dist_dir = join(self.storage_dir, 'dists') |
| 166 | |
| 167 | def ensure_dirs(self): |
| 168 | ensure_dir(self.storage_dir) |
no outgoing calls