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

Is flit install still necessary? #670

Open
JulienPalard opened this issue Dec 17, 2023 · 1 comment
Open

Is flit install still necessary? #670

JulienPalard opened this issue Dec 17, 2023 · 1 comment

Comments

@JulienPalard
Copy link

It looks like flit install has been introduced to allow easy development, back when pip install --editable . was not working with pyproject.toml based packaging.

Today pip install --editable . works and it feels like flit install is no longer needed, am I wrong?

I fear new users may not understand why flit install exist, and use it "just because the README tells so", adding a bit of unnecessary obscurity on this already complicated topic. Also this confusion may push them to think they need "one tool to do everything from venv creation to dependency solving" instead of "tools that do one thing and do it well". Showing them that pip install . and pip install -e . "naturally" works would be nice from this point of view.

In order to keep flit simple (for maintainers too!) should flit install be slowly deprecated? Maybe at first by replacing it from the README by pip install --editable .?

Or an I missing something?

@takluyver
Copy link
Member

Good question! flit install is kind of hanging around because I, and a few other people (see discussion on #522) prefer doing editable installs with symlinks (flit install --symlink) to the way standardised editable installs (pip install -e .) work. If that doesn't matter to you, feel free to just use pip.

One thing I've considered is making flit symlink a separate subcommand, and then deprecating flit install. This would actually be going back to a much earlier CLI design. 🤷

You can also argue that most of the Flit CLI is redundant with tools like build and twine, so maybe we should get rid of all of it. But sometimes it's convenient to have these operations grouped together this way.

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