Skip to content

Commit

Permalink
add additional pip args; set env var to disable pip env isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Jul 15, 2018
1 parent 575c026 commit 25b6a85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,10 @@ def build(m, stats, post=None, need_source_download=True, need_reparse_in_env=Fa
env = environ.get_dict(m=m)
env["CONDA_BUILD_STATE"] = "BUILD"

# hard-code this because we never want pip's build isolation
# https://github.com/conda/conda-build/pull/2972#discussion_r198290241
env["PIP_NO_BUILD_ISOLATION"] = False

work_file = join(m.config.work_dir, 'conda_build.sh')
with open(work_file, 'w') as bf:
for k, v in env.items():
Expand Down
5 changes: 3 additions & 2 deletions conda_build/skeletons/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def skeletonize(packages, output_dir=".", version=None, recursive=False,
if noarch_python:
ordered_recipe['build']['noarch'] = 'python'

ordered_recipe['build']['script'] = 'python -m pip install . --no-deps --ignore-installed'
ordered_recipe['build']['script'] = ('python -m pip install . --no-deps '
'--ignore-installed --no-cache-dir -vvv')

# Always require python as a dependency
ordered_recipe['requirements'] = ruamel_yaml.comments.CommentedMap()
Expand Down Expand Up @@ -559,7 +560,7 @@ def get_download_data(pypi_data, package, version, is_url, all_urls, noprompt, m
pypiurl = url['url']
print("Using url %s (%s) for %s." % (pypiurl,
human_bytes(url['size'] or 0), package))

if url['digests']['sha256']:
digest = ('sha256', url['digests']['sha256'])
else:
Expand Down
4 changes: 4 additions & 0 deletions conda_build/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ def build(m, bld_bat, stats):
env = environ.get_dict(m=m)
env["CONDA_BUILD_STATE"] = "BUILD"

# hard-code this because we never want pip's build isolation
# https://github.com/conda/conda-build/pull/2972#discussion_r198290241
env["PIP_NO_BUILD_ISOLATION"] = False

# set variables like CONDA_PY in the test environment
env.update(set_language_env_vars(m.config.variant))

Expand Down

0 comments on commit 25b6a85

Please sign in to comment.