This is liable to change in the future.A
prebuilt_python_library()rule is used to include prebuilt python packages into the output of a top-level
python_testrule. To create an egg for a package, run
python setup.py bdist_eggin the package source distribution.
The name of the rule.
The path to the
.eggto use. Note:
.eggfiles have a very particular naming convention that must be followed - otherwise pex will not find the dependency properly at runtime!
prebuilt_python_library()rules which this library depends on. These may also be
python_libraryrules if you want to depend on a source-based copy of the library.
List of build target patterns that identify the build rules that can include this rule in its
# A simple prebuilt_python_library with no external dependencies. prebuilt_python_library( name = 'requests', binary_src = 'requests-2.7.0-py2.7.egg', ) # A slightly more complex example prebuilt_python_library( name = 'greenlet', binary_src = 'greenlet-0.4.7-py2.7-macosx-10.10-x86_64.egg', ) prebuilt_python_library( name = 'gevent', binary_src = 'gevent-1.0.2-py2.7-macosx-10.10-x86_64.egg', deps = [ ':greenlet', ], )