How to include package dependencies that are not available via PyPi?

91 views
Skip to first unread message

laali

unread,
Jul 7, 2015, 1:40:33 AM7/7/15
to pants...@googlegroups.com
Is there a way to include dependencies that are not published PyPi in a pantsbuid BUILD file? Is there an option like dependency_links in setuptools?
Thanks

Patrick Lawson

unread,
Jul 7, 2015, 11:22:36 AM7/7/15
to laali, pants-devel
One example, which mimics the `--find-links` behavior of pip when pex is doing resolution, from our pants.ini:

```
[python-repos]
repos: [
    '%(buildroot)s/.wheelhouse'
  ]
```

`.wheelhouse` is a directory that our bootstrapping scripts maintain which contains a bunch of (potentially platform specific) wheels that define the universe of third party python dependencies available to pants for resolution.

John Sirois

unread,
Jul 7, 2015, 4:52:07 PM7/7/15
to Patrick Lawson, laali, pants-devel
Laalitha's question is likely in re: https://github.com/pantsbuild/pants/issues/1751

I have a fully worked example of Patrick's reccomendation, although the set of prebuilts is kept minimal to highlight exactly which of Laalitha's deps is broken with respect to naive auto-install  via pip/pex/pants: https://github.com/pantsbuild/issues-1751
The issues here center around numpy-ecosystem distributions which have been problematic to install in my experience over at least the last 4 years if not over their entire history.  Though problematic to install these are highly useful/used libs so hopefully the example repo pulls it's weight over time as an example of what to do if you want to use pants and numpy-foo.
Reply all
Reply to author
Forward
0 new messages