Open ewhauser opened 5 years ago
Ah, right this is a great point. I am not sure what the best way of managing a project that needs to use both Python2 and Python3 is. Its going to be ... messy probably given that the dependency resolution can't easily happen in Bazel itself. My current thinking is maybe it would be best to make sure pip_generate
can generate the correct dependencies, and then use two separate pypi_rules.bzl
files, one for Python2 and one for Python3; would that work for your use case?
I think the issue you're pointing out @ewhauser is that the Python 3 version only finds a Mac .whl file? No idea why this would be...! Might just be a PyPI problem?
I'm seeing the same issue. Got a repository with python 3 only. Trying to adopt pyz rules, but pip_generate doesn't add all platforms for python3 dependencies. For our case, that's grpcio, numpy, pandas etc.
Command line:
Python 2:
Python 3: