Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid bootstrapping issues with different location in SRC_DIR #204

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

cd conda-src/

if [[ "$build_platform" != "$target_platform" && -z "$PYTHONPATH" ]]; then
# conda-build special cases conda and doesn't activate it
# See https://github.com/conda/conda-build/blob/1010e8309a20e144c51b1d86b2daebd146be923e/conda_build/metadata.py#L2273
Expand Down
9 changes: 5 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ source:
fn: conda-{{ version }}.tar.gz
url: https://github.com/conda/{{ name }}/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}
folder: conda-src # avoid bootstrapping issues
patches:
- patches/01-deprecations-version-fallback.patch

build:
number: 0
number: 1
# These are present when the new environment is created
# so we have to exempt them from the list of initial files
# for conda-build to realize they should be included.
Expand Down Expand Up @@ -73,8 +74,8 @@ requirements:
test:
{% if run_pytest == 'yes' %}
source_files:
- tests
- setup.cfg
- conda-src/tests
- conda-src/setup.cfg
{% endif %}
requires:
- mock
Expand Down Expand Up @@ -103,7 +104,7 @@ test:
about:
home: https://conda.io
license: BSD-3-Clause
license_file: LICENSE.txt
license_file: conda-src/LICENSE.txt
summary: OS-agnostic, system-level binary package and environment manager.
description: >
Conda is an open source package management system and environment management system for installing multiple versions of software packages and their dependencies and switching easily between them. It works on Linux, OS X and Windows, and was created for Python programs but can package and distribute any software.
Expand Down