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

FIX copy filestore in wheel #451

Merged
merged 8 commits into from
May 24, 2022
Merged

FIX copy filestore in wheel #451

merged 8 commits into from
May 24, 2022

Conversation

TomDLT
Copy link
Contributor

@TomDLT TomDLT commented May 24, 2022

Fixes #447 Probably fixes #448
Related to #433

Before: The sdist archive (.tar.gz) available on Github or PyPI correctly contains the filestore. However, when pip compiles the archive, it creates a wheel (.whl) without the filestore, and caches it for future re-install. Installing from the wheel would then fail to initialize the filestore (subject database and colormaps).

After: The wheel now contains the filestore, which is copied in the right location during the install.

Tested on my machine, installing either from .tar.gz, from cached .whl, or from manually created .whl.

  • filestore copied to: .../tomdlt/miniconda3/envs/py37/share/pycortex
  • with pip install --user, filestore copied to: .../tomdlt/.local/share/pycortex

I also removed the MANIFEST file, which seems unused or redundant with MANIFEST.in.
(Also not sure why fae450e is a different commit than 5a9d07f.)

@mvdoc
Copy link
Contributor

mvdoc commented May 24, 2022

That's great, thanks! Do you think it would be worth adding an extra step in the github actions to test the install from wheel vs. from sdist?

Copy link
Contributor

@mvdoc mvdoc left a comment

Choose a reason for hiding this comment

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

thanks!

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.

Webshow colormaps index error Automatically create database and colormap folders
2 participants