PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Saturday the 4th of July, 2020

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[07:16:38] <famubu> Can we use an src/ layout with flit for packaging python projects?
[07:29:09] <McSinyx[m]> I think it should work (I've never tried though): https://flit.readthedocs.io/en/latest/history.html
[07:34:28] <famubu> McSinyx[m]: In the site, the src/ layout is mentioned only in the changelog... :(
[07:34:56] <famubu> And does anyone know how we do editable install with flit? To see if everything works?
[07:35:46] <McSinyx[m]> re src: yep apparently (I had to look it up to find it d-:)
[07:36:01] <McSinyx[m]> re editable: I don't think it works yet
[07:37:02] <famubu> McSinyx[m]: Regarding the editable install, any idea how the people who write packages with it try them out? I mean, if it were setuptools, we can do `pip3 install -e`. Something like that maybe?
[07:37:32] <McSinyx[m]> I was wrong: https://discuss.python.org/t/third-try-on-editable-installs/3986
[07:41:15] <McSinyx[m]> (the flit command is `flit install --symlink`)
[07:41:53] <McSinyx[m]> if I understand your question correctly, then I'm not exactly sure
[07:42:36] <famubu> McSinyx[m]: Thanks! That was what I needed. To install a package for development.
[07:43:00] <McSinyx[m]> last time I tried `pip install -e .` doesn't seems to work if pyproject.toml presence, even for setuptools
[07:43:41] <McSinyx[m]> *projects built by setuptools like pip, I had to go for setup.py develop instead
[07:44:09] <McSinyx[m]> I'm glad that you got it figured out (-:
[07:46:21] <famubu> I hadn't tried setuptools with pyproject.toml. Is editable install possible with `setup.py develop`?
[08:48:52] <McSinyx[m]> yes it is, although one'd have to take care of dependencies oneself
[17:27:40] <pradyunsg> famubu: src/ with flit, will "just work". you basically need to have src/pkg.py or src/pkg/__init__.py :)
[18:32:00] <pradyunsg> editable installs with pip + flit won't work, since PEP 517 doesn't have that, in it.
[18:53:21] <ngoldbaum> oh interesting
[18:53:49] <ngoldbaum> is there any movement toward a follow-on standard for editable installs or would thomas call that out of scope?
[20:29:36] <pradyunsg> ngoldbaum: yes -- https://discuss.python.org/t/4118/ and https://discuss.python.org/t/4098/
[20:29:53] <ngoldbaum> thanks for the links!
[20:30:03] <pradyunsg> it's definitely a follow up standard that we want.
[20:31:00] <ngoldbaum> totally makes sense that this was deemed
[20:31:06] <ngoldbaum> out of scope initially
[20:31:24] <ngoldbaum> much respect for people who can keep up with all these discussions
[20:32:01] <pradyunsg> :)