Reverting removal of prepare_command to maintain backwards compatibility of configurations with {python} and {pip}

This commit is contained in:
Yannick Jadoul
2018-04-08 17:01:54 +02:00
parent 4d61b08fa3
commit 2ebde4c078
4 changed files with 23 additions and 4 deletions
+4 -1
View File
@@ -7,6 +7,8 @@ try:
except ImportError:
from pipes import quote as shlex_quote
from .util import prepare_command
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, skip, environment):
PythonConfiguration = namedtuple('PythonConfiguration', ['version', 'identifier', 'url'])
@@ -83,7 +85,8 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
# run the before_build command
if before_build:
call(before_build, env=env, shell=True)
before_build_prepared = prepare_command(before_build, python='python', pip='pip')
call(before_build_prepared, env=env, shell=True)
# build the wheel
call(['pip', 'wheel', abs_project_dir, '-w', '/tmp/built_wheel', '--no-deps'], env=env)