Not sure if I should ask here or general... Is thi...
# development
w
Not sure if I should ask here or general... Is this the most recent/correct docs for building pants for a manual integration test? https://v1.pantsbuild.org/howto_develop.html
w
the v1 site is for Pants 1.x: more recent is anything directly on
www
https://www.pantsbuild.org/docs/development is a good landing page for v2 development
w
Just saw this.
Copy code
See the new docs for how to set up Pants to develop locally.

The rest of this page documents things that have not yet been moved to the new site.
How do I run the development build of pants? I couldn't find that in the new docs.
w
just running
pants
in the
pantsbuild/pants
repo will do it.
it will build from source.
…sorry. do you mean “how do i run a development version of pants in a different repository than `pantsbuild/pants`”?
h
If so, that's at the bottom of https://www.pantsbuild.org/docs/installation
w
Yeah, I think so! I wanted to test the asdf integration and I figured the best way was to build it and run with my setup. Thanks.
🙌 1
h
You can also run Pants directly from sources in a sibling repo. See https://github.com/pantsbuild/example-python/blob/main/pants_from_sources for an example
We should probably document this
w
yea, what Benjy said. if you’re going to be live editing, you want to use something like that
pants_from_sources
script. it really doesn’t require a script in general though… it mostly amounts to running the
pants
script from your
pantsbuild/pants
in another directory
h
well, it's not quite that simple, you need to set some env vars and stuff
so the script makes it easy
w
Only if you have source plugins, afaik
w
For that script, I'm not sure if it's because I'm using mac's ancient bash version, but I had to remove the
-u
option. Seems like initializing an empty array isn't the same as binding it?
Copy code
./pants_from_sources: line 26: plugins[@]: unbound variable
./pants_from_sources: line 26: pythonpath[@]: unbound variable
./pants_from_sources: line 26: backend_packages[@]: unbound variable
and then a failure containing
Copy code
180, in parse
    req, = parse_requirements(s)
ValueError: not enough values to unpack (expected 1, got 0)
Removing that -u option fixed it.