-
Notifications
You must be signed in to change notification settings - Fork 181
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
MAINT: Fixup and remove bundled dependencies #1234
Conversation
898c148
to
3f39e6f
Compare
Will debug soon. |
ab99396
to
689edee
Compare
This could use a refresh |
asv/benchmark.py
Outdated
return | ||
|
||
try: | ||
subprocess.check_output(['python', "-mpip", "install", 'pympler']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works with all three environment backends, conda
, mamba
(as of #1238) and virtualenv
but is syntactically less than ideal. A better approach would be to modify the constraints of the environment
class which is the base of all the backends.. Though YAGNI probably.
After the move from setup.cfg to pyproject.toml this now has conflicts. |
MAINT: Kill extern in favor of pympler and pyjson5 Revert "MAINT: Kill extern in favor of pyjson5" This reverts commit 02a2b170910f55072a008cc7d52da55e0b894b32. MAINT: Fixup MAINT: Use pyjson5 correctly
0f5aa42
to
bbd8f8a
Compare
b8bb50a
to
068546d
Compare
6c443ea
to
bb87d6d
Compare
9d85a5f
to
b2c6f9a
Compare
return | ||
|
||
def import_asizeof(): | ||
"""Import asizeof, searching system Pythons in PATH.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need all this? If the import fails, can't we just fail the run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem here is that the import fails where it shouldn't, e.g. on the CI. This seems to be because of the process isolation (each ASV run is in a different subprocess, which doesn't include asv
and on CI cannot use pip
either). Perhaps, now that I'm thinking about it, it would be cleaner to instead import asv
itself, which would automatically bring in pympler
and is discussed in #908
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I went with that approach then the Import Mechanism would instead load ASV rather than asizeof
, but I'm not sure how to simplify this further without breaking the subprocess approach.
0791a61
to
4ea96eb
Compare
I am fine to merge this as-is and then to iterate on solving the import problem, what do you think? |
Sure that sounds great. |
This supersedes #1225 and #1211.
Also closes #1139.
cc @mattip