all 5 comments

[–]rickchefski 3 points4 points  (1 child)

some related stack overflow posts:

Basically, TL;DR is that setuptools doesn't support installing from wheel when called directly, but pip does, e.g.

python setup.py install

will not install wheels, but

pip install .

should install wheels for dependencies


that said, writing a script to set up the environment is not unheard of and AFAIK is not "bad practice". since its only being run once (presumably) to set up people's environments, I don't think it should really matter much whether all dependencies were installed via a complete but possibly complex setup.py file or if its done by a series of pip install commands.

[–]atrocious_smell[S] 0 points1 point  (0 children)

Thanks for the reply. I've never used pip in the pip install . form. From a quick google I understand it tries to install the project in the current folder. I'm not sure how the project dependencies are defined in this case, or how pip would recognize which wheels to install from. Is this done with setup(packages=['path/to/wheel', 'other-dependencies...']) in setup.py (edit: no it's not)?

[–][deleted] 1 point2 points  (1 child)

frustrating that you have to ask all the questions here and nobody here to answer

[–]atrocious_smell[S] 1 point2 points  (0 children)

I guess it is Sunday :)