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

pixi use questions #27

Open
matthewfeickert opened this issue Aug 7, 2024 · 1 comment
Open

pixi use questions #27

matthewfeickert opened this issue Aug 7, 2024 · 1 comment
Labels
question Further information is requested

Comments

@matthewfeickert
Copy link
Member

The pixi.lock file currently contains a complete description of your python environment and is over 6000 lines and 200KB. Is there a way to streamline this - perhaps by creating the lock file within a minimalist virtual environment?

Originally posted by @amegahed in #26 (comment)

@matthewfeickert
Copy link
Member Author

matthewfeickert commented Aug 7, 2024

The pixi.lock file currently contains a complete description of your python environment and is over 6000 lines and 200KB.

@amegahed The pixi environment does not involve Python at all

$ git grep "python" -- pixi.lock  # no output

pixi it is a general dependency management tool that focuses on using package indexes that Python packages use often (PyPI and conda-forge) but there is no requirement for Python. This is a Ruby project, and so there are only Ruby dependencies and then external dependencies of Ruby Gems. For example

gem 'jekyll-imagemagick'

brings an external dependency of ImageMagick, which needs to be accounted for in the pixi project

imagemagick = ">=7.1.1_36,<8"

As I mentioned in #18 (comment), the pixi.lock file is also not something that humans are going to maintain or edit directly, so the file length isn't something to be concerned about.

Is there a way to streamline this - perhaps by creating the lock file within a minimalist virtual environment?

No. Lock files are by design going to be large even if they only describe minimal requirements, like this one does.

I'm also not clear on why this is an issue for this project. If you use some set of commands like shown here https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history to find the largest files in every commit in the repo and grep on pixi.lock you get

5231d844427a  100KiB pixi.lock
1dae21da8b88  195KiB pixi.lock

but those aren't even in the top 30 largest. So no git operations slow down is happening because of pixi.

@matthewfeickert matthewfeickert added the question Further information is requested label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant