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

Back to flit? #92

Closed
flying-sheep opened this issue Sep 25, 2019 · 3 comments
Closed

Back to flit? #92

flying-sheep opened this issue Sep 25, 2019 · 3 comments

Comments

@flying-sheep
Copy link
Contributor

As you said, flit is much nicer, the only problem is that pip install from git is super slow for scvelo using it. This issue is for investigating why and figuring out how to fix the slowness.

One option would be pypa/pip#6144, so let’s try checking out the commit before switching to setuptools: 3670999

$ git checkout 367099972c863370d27d472d29ce39fa85c9b4eb
$ pip install --user --no-build-isolation .

If this doesn’t fix it, let‘s see if we can find the real cause!

@VolkerBergen
Copy link
Contributor

VolkerBergen commented Oct 7, 2019

Thanks, I am actually quite satisfied with setuptools backend (instead of flit) as it is fast and works as expected.

With no-iso install I get the following pep517 error.

pip install --user --no-build-isolation .

Traceback
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 188, in main
    status = self.run(options, args)
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 345, in run
    resolver.resolve(requirement_set)
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 196, in resolve
    self._resolve_one(requirement_set, req)
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 359, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 307, in _get_abstract_dist_for
    self.require_hashes
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 215, in prepare_linked_requirement
    finder, self.build_isolation,
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/distributions/source.py", line 79, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 549, in prepare_metadata
    self.prepare_pep517_metadata()
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 594, in prepare_pep517_metadata
    metadata_dir
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_vendor/pep517/wrappers.py", line 86, in prepare_metadata_for_build_wheel
    'config_settings': config_settings,
  File "/Users/volker.bergen/anaconda3/envs/py36/lib/python3.6/site-packages/pip/_vendor/pep517/wrappers.py", line 162, in _call_hook
    raise BackendUnavailable
pip._vendor.pep517.wrappers.BackendUnavailable

@flying-sheep
Copy link
Contributor Author

You forgot to upload a wheel for the newest release:

python setup.py bdist_wheel
twine upload dist/scvelo-....whl

@VolkerBergen
Copy link
Contributor

Thanks, fixed. Decided not to move back to flit for now.

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

No branches or pull requests

2 participants