google / subpar

Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel.
Apache License 2.0
567 stars 69 forks source link

Discrepancy with py_binary #58

Open hutchk opened 6 years ago

hutchk commented 6 years ago

Hello,

I have a py_binary rule that utilizes pip_import dependencies. I'm not able to get get it to create a par file that will execute.

Could you tell me what I'm doing wrong?

Here's my code: https://github.com/hutchk/bazel_subpar

duggelz commented 6 years ago

It sounds like it might be the same thing as https://github.com/bazelbuild/rules_python/issues/45. Can you run the following in a Terminal window:

python2.7 -c 'import setuptools; print(setuptools.__version__)'
hutchk commented 6 years ago

Here you go:

$ python2.7 -c 'import setuptools; print(setuptools.__version__)'
37.0.0
hutchk commented 6 years ago

@duggelz Do you think it's the same problem? Do you have other suggestions on how to troubleshoot?

duggelz commented 6 years ago

This looks like a different problem. I need to dig into the google cloud packages more.