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

BUG,MAINT: Depend on build #1387

Merged
merged 7 commits into from
Feb 21, 2024
Merged

Conversation

HaoZeke
Copy link
Member

@HaoZeke HaoZeke commented Feb 18, 2024

Closes #1385.

@HaoZeke HaoZeke requested a review from mattip February 18, 2024 22:33
Set the project builder accordingly
@HaoZeke HaoZeke changed the title BUG: Be more careful about build BUG,MAINT: Depend on build Feb 18, 2024
@HaoZeke
Copy link
Member Author

HaoZeke commented Feb 18, 2024

On whole I prefer supporting just build, it also supports python>=3.7 and is much better supported moving forward.

@mattip
Copy link
Contributor

mattip commented Feb 19, 2024

CI is timing out at 30 minutes here and here

@HaoZeke
Copy link
Member Author

HaoZeke commented Feb 19, 2024

CI is timing out at 30 minutes here and here

The PyPy 3.8 test I guess is just flaky, but I will need to try running the Windows one locally, not sure what's going on there.

ASV manages environments.
@mattip
Copy link
Contributor

mattip commented Feb 20, 2024

The ubuntu linux and macos runs are at 19 minutes, so the 30 minute limit for windows and PyPy should be upped to 60 minutes.

Co-authored-by: mattip <mattip@users.noreply.github.com>
@HaoZeke
Copy link
Member Author

HaoZeke commented Feb 21, 2024

@mattip this should be fine now, the PyPy timeout is still random.

@mattip
Copy link
Contributor

mattip commented Feb 21, 2024

PyPy has a timeout of 30 minutes, and the tests seem to take just about that. Why not up the timeout to 60 minutes?

@mattip
Copy link
Contributor

mattip commented Feb 21, 2024

Or skip some of the slower tests on PyPy, like test/test_find.py::test_find which takes 5 minutes

@HaoZeke
Copy link
Member Author

HaoZeke commented Feb 21, 2024

Or skip some of the slower tests on PyPy, like test/test_find.py::test_find which takes 5 minutes

Yup, finally green.

@mattip mattip merged commit c4b7002 into airspeed-velocity:main Feb 21, 2024
14 checks passed
@mattip
Copy link
Contributor

mattip commented Feb 21, 2024

Thanks @HaoZeke

Comment on lines +924 to +927
cmd = [
"PIP_NO_BUILD_ISOLATION=0 python -m build",
"python -mpip wheel -w {build_cache_dir} {build_dir}"
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this run wheel after running build, which would have already built a wheel?

Also, the call to build should probably pass --wheel, because I don't think the sdist is used for anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I just remembered that pip wheel downloads wheels for dependencies as well, so I guess that's why it's used?

The problem seems to be that it says it's building the wheel again, which seems redundant (though it's not verbose, so I can't tell if it's just saying that or is really doing a whole build again.)

yarikoptic added a commit to yarikoptic/datalad-fuse that referenced this pull request Mar 20, 2024
We are hitting odd

    Run asv run --show-stderr --python 3.8 HEAD^-1
    Couldn't load asv.plugins._mamba_helpers because
    No module named 'libmambapy'

which was presumably the

   airspeed-velocity/asv#1385

which was addressed by

   airspeed-velocity/asv#1387

which was released in 0.6.3 but we are installing it

    Collecting asv!=0.6.2 (from asv[virtualenv]!=0.6.2)
      Downloading asv-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)

and still hitting it. Trying now with explicit "build" in depends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: build is not always present
3 participants