https://pantsbuild.org/ logo
#general
Title
# general
g

glamorous-accountant-97217

04/07/2023, 2:46 PM
is it possible to make pants use some other name for build files instead of BUILD? I am trying to use nuitka with pants on my mac, and nuitka tries to create a “build” directory, and it’s not allowed to do that because my mac considers “build” and “BUILD” to be the same path
w

wide-midnight-78598

04/07/2023, 2:49 PM
Copy code
[GLOBAL]
build_patterns = ["BUILD.pants"]
🤯 1
g

glamorous-accountant-97217

04/07/2023, 2:50 PM
thank you! this was hard to google
p

proud-dentist-22844

04/07/2023, 3:03 PM
The default
build_patterns
already includes
BUILD.*
, So you can use
BUILD.pants
without changing
pants.toml
.
w

wide-midnight-78598

04/07/2023, 3:08 PM
Whoa, was it always like that? I've been passing forward the same pants.toml for a while, I thought at some point BUILD.pants wasn't being picked up 🤷 Correction - I specifically didn't want BUILD files picked up, that's why I used the patterns.
r

refined-addition-53644

04/07/2023, 3:09 PM
Although it’s written in the docs that you need to tell tailor what is the BUILD file name you are using. Won’t tailor by default will generate
BUILD
if we aren’t being explicit?
p

proud-dentist-22844

04/07/2023, 3:10 PM
Yes. tailor uses
BUILD
by default - there's a different setting to contribute that which does need to be modified in
pants.toml
.
👍 1