Fix python_library so it caches correctly.

Summary:
Previously, if you had a python_binary rule that depended on a
python_library rule, and both rules were cached in cassandra,
there would be an issue executing the python_binary rule
(presumably as part of a genrule) because the files from the
python_library rule would not be in buck-out/bin/ where the
python_binary rule expected them to be.

This changes things so that the python_library writes its files
to buck-out/gen/, and those files are archived with the python_library
rule such that when it is pulled down from cassandra, it is
unpacked in the way that python_binary needs.

Test Plan: Sandcastle builds.
8 files changed
tree: b2c27e352e1c80630241d7802ce7be2461bae342
  1. .idea/
  2. bin/
  3. config/
  4. docs/
  5. lib/
  6. pmd/
  7. scripts/
  8. src/
  9. test/
  10. testdata/
  11. third-party/
  12. .buckconfig
  13. .classpath
  14. .gitignore
  15. .project
  16. buck.iml
  17. build.xml
  18. DEFS
  19. LICENSE
  20. README.md
README.md

Buck

Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.

Installation

To build Buck, run the following:

git clone git@github.com:facebook/buck.git
cd buck
ant
./bin/buck --help

License

Apache License 2.0