Show More
@@ -86,20 +86,22 b' def build(source_dir: pathlib.Path, buil' | |||
|
86 | 86 | extract_zip_to_directory(gettext_pkg, gettext_root) |
|
87 | 87 | extract_zip_to_directory(gettext_dep_pkg, gettext_root) |
|
88 | 88 | |
|
89 | # This assumes Python 2. We don't need virtualenv on Python 3. | |
|
90 | virtualenv_src_path = build_dir / ( | |
|
91 | 'virtualenv-%s' % virtualenv_entry['version']) | |
|
92 | virtualenv_py = virtualenv_src_path / 'virtualenv.py' | |
|
93 | ||
|
94 | if not virtualenv_src_path.exists(): | |
|
95 | extract_tar_to_directory(virtualenv_pkg, build_dir) | |
|
96 | ||
|
97 | py2exe_source_path = build_dir / ('py2exe-%s' % py2exe_entry['version']) | |
|
98 | ||
|
99 | if not py2exe_source_path.exists(): | |
|
100 | extract_zip_to_directory(py2exe_pkg, build_dir) | |
|
101 | ||
|
89 | 102 | with tempfile.TemporaryDirectory() as td: |
|
90 | 103 | td = pathlib.Path(td) |
|
91 | 104 | |
|
92 | # This assumes Python 2. | |
|
93 | extract_tar_to_directory(virtualenv_pkg, td) | |
|
94 | extract_zip_to_directory(py2exe_pkg, td) | |
|
95 | ||
|
96 | virtualenv_src_path = td / ('virtualenv-%s' % | |
|
97 | virtualenv_entry['version']) | |
|
98 | py2exe_source_path = td / ('py2exe-%s' % | |
|
99 | py2exe_entry['version']) | |
|
100 | ||
|
101 | virtualenv_py = virtualenv_src_path / 'virtualenv.py' | |
|
102 | ||
|
103 | 105 | if not venv_path.exists(): |
|
104 | 106 | print('creating virtualenv with dependencies') |
|
105 | 107 | subprocess.run( |
General Comments 0
You need to be logged in to leave comments.
Login now