Log file Viewer
Help
|
Karma
| Search:
#pypa logs for Monday the 28th of January, 2019
(
Back to #pypa overview
) (
Back to channel listing
) (
Animate logs
)
[
04:50:46
] <
energizer
> can `python setup.py register sdist` be safely replaced with `python setup.py sdist bdist_wheel && twine upload dist/*`?`
[
05:12:26
] <
njs
> register definitely isn't a thing anymore
[
05:13:01
] <
njs
> they're not equivalent obviously, but the second one is a reasonable thing to do
[
19:22:51
] <
Cadair
> Hello, I am currently trying to debug a weird issue with pip 19
[
19:23:27
] <
Cadair
> When running `pip install` I get this:
[
19:23:27
] <
Cadair
> https://gist.github.com/Cadair/92e41f6586eb190caa8c29b4b4144701
[
19:23:38
] <
Cadair
> We have a pyproject.toml file in the repo
[
19:23:53
] <
Cadair
> and if I run with `--no-build-isolation` it installs fine
[
19:34:27
] <
ngoldbaum
> Cadair: i'd open an issue on pip's github
[
19:36:33
] <
Cadair
> I think I have worked it out
[
19:36:48
] <
Cadair
> and now have the fun issue of pip using up all 7GB of my /tmp dir
[
19:38:06
] <
Cadair
> which is because of `.tox`
[
19:38:10
] <
Cadair
> ok, problem solved.
[
19:40:44
] <
ngoldbaum
> still, don't think pip should traceback like that
[
19:40:48
] <
ngoldbaum
> what was the issue?
[
19:48:45
] <
Cadair
> we had `setup_requires=''` in our setup.py
[
19:48:57
] <
Cadair
> for reasons I do not understand
[
19:49:39
] <
Cadair
> but it is an invalid requirement, so I can understand it erroring
[
19:56:38
] <
ngoldbaum
> sure, i guess ideally it would error in a less confusing way though
[
20:03:09
] <
Cadair
> true
[
20:50:12
] <
dude-x
> how do i write a setup.py that installs a package thats's only in git
[
20:52:45
] <
dude-x
> in the `install_requires` list
[
20:53:12
] <
dude-x
> i tried `pip @ http:/github.com/.../tarball/master' but that doesn't seem to work
[
20:56:57
] <
techalchemy
> Cadair: the issue # is #6163 on pip
[
20:57:03
] <
techalchemy
> you can install with --no-use-pep517
[
20:57:22
] <
tos9
> dude-x: your setup.py does not (should not) contain that information.
[
20:57:35
] <
tos9
> dude-x: it contains info about the names of your dependencies, not where they live
[
20:58:12
] <
dude-x
> tos9 sure... but this is a pyramid application and pyramid_openapi3 is not published in PyPI.
[
20:58:27
] <
tos9
> dude-x: Right, that doesn't change anything though
[
20:58:37
] <
tos9
> dude-x: it's `pyramid_openapi3` that goes in your setup.py regardless of where it lives
[
20:58:48
] <
tos9
> If you need to specify where to get it from, that goes in a requirements.txt
[
21:00:31
] <
dude-x
> but if i am deploying my app, i just want to run pip install . and have it install all the stuff.
[
21:02:13
] <
tos9
> dude-x: then you'd run `pip install -r requirements.txt` instead :)
[
21:03:40
] <
dude-x
> so there's absolutely no way around this?
[
22:43:10
] <
toad_polo
> I don't think that information is accurate, tos9.
[
22:43:53
] <
techalchemy
> dude-x: modern pip uses pep 508 markers
[
22:44:23
] <
dude-x
> techalchemy git+http://.... ?
[
22:44:32
] <
techalchemy
> install_requires = ["pip@ git+https://github.com/pypa/pip.git@master",]
[
22:44:34
] <
techalchemy
> should work
[
22:44:51
] <
techalchemy
> as of this release it actually works
[
22:44:57
] <
dude-x
> techalchemy thanks i'll take a look and experiment. pip 19.x?
[
22:45:12
] <
techalchemy
> yeah i'm working on the pipenv implementation atm
[
22:47:24
] <
techalchemy
> dude-x: to use the zip archive you can use: install_requires = ["pip@ https://github.com/pypa/pip/archive/master.zip",]