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

Add a class to tarball the editable user-installed package from git repo #125

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

dachengx
Copy link
Contributor

  1. Tarball.is_user_installed test whether a package is user installed
  2. Tarball.get_installed_git_repo returns the repo where the editable user-installed package is from
  3. Tarball.create_tarball create a tarball of the git repo, while ignoring the git-ignored files

After Tarball.create_tarball, you can mkdir strax && tar -xzf strax.tar.gz -C strax --strip-components=1 to extract the package into strax folder. Here --strip-components=1 is to strip the first folder level. This is to be compatible with the file structure of deployed cutax. You can find them at /ospool/uc-shared/project/xenon/xenonnt/software/cutax.

@dachengx dachengx marked this pull request as ready for review September 15, 2024 19:59
@dachengx dachengx changed the title Add a class to tarball the editable user-installed from git repo Add a class to tarball the editable user-installed package from git repo Sep 15, 2024
@dachengx
Copy link
Contributor Author

Needed by XENONnT/outsource#175

@dachengx dachengx merged commit f2a9956 into master Sep 16, 2024
2 checks passed
@dachengx dachengx deleted the tarball_package branch September 16, 2024 00:25
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.

1 participant