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

Ignore EAGER_IMPORT environment variable in setup.py #6045

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Nov 16, 2021

Description

While working on #6042 I had set the EAGER_IMPORT environment variable. I later noticed that calling setup.py after "make clean" in an environment where this variable is defined will cause attempted imports of modules that have not yet been built, causing the install to fail. This PR avoids the issue by removing the environment variable when running setup.py.

Checklist

  • Docstrings for all functions
  • Gallery example in ./doc/examples (new features only)
  • Benchmark in ./benchmarks, if your changes aren't covered by an
    existing benchmark
  • Unit tests
  • Clean style in the spirit of PEP8
  • Descriptive commit messages (see below)

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.

… defined

We use EAGER_IMPORT to help detect potential circular imports during testing.
The build script will fail if an eager import is attempted, so ignore this
environment variable when in setup.py
@grlee77 grlee77 added the 🔧 type: Maintenance Refactoring and maintenance of internals label Nov 16, 2021
@grlee77
Copy link
Contributor Author

grlee77 commented Nov 16, 2021

the failure here is unrelated to this PR (see #6019)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant