Questions tagged [pants]

Pants is a build system for software. It works particularly well for a source code workspace containing many distinct but interdependent pieces.

Pants is a build system for software. It works particularly well for a source code workspace containing many distinct but interdependent pieces.

Resources

48 questions
1
vote
1 answer

In the pants buildtool, what is the difference between 'advanced' options and regular options?

When you run ./pants with no options you get the help: $ ./pants help Pants 0.0.32 https://pypi.python.org/pypi/pantsbuild.pants/0.0.32 Usage: ./pants [option ...] [goal ...] [target...] Attempt the specified goals. ./pants help …
ericzundel
  • 550
  • 3
  • 11
1
vote
2 answers

Error from Pants pex install: "FAILURE: Unable to detect a suitable interpreter for compatibilities: (Conflicting targets: )"

I am using pants version 0.0.32 + a few more commits from master. I want to use a pex distribution that bundles in both Linux and MacOS support. I am building the pex from the Pants OSS repo using: git clean -fdx PANTS_DEV=1 ./pants binary…
ericzundel
  • 550
  • 3
  • 11
0
votes
1 answer

pants with isort thinks my python modules are third party

I have a pants project that I've modified from the example repo so that the source code resides under project1/src: ├── BUILD ├── LICENSE ├── README.md ├── mypy.ini ├── pants.ci.toml ├── pants.toml ├── project1 │   └── src │   ├── BUILD │   …
chadrik
  • 3,413
  • 1
  • 21
  • 19
0
votes
1 answer

When use Pants to build Django it raise "ModuleNotFoundError: No module named"

I configured Pantsbuild for our Django project, and everything worked neatly. Here is my BUILD file: python_requirement( name="django", requirements=["django==4.1.1"], ) python_sources( name="lib", dependencies=[ …
Xurvan
  • 179
  • 2
  • 14
0
votes
1 answer

Pants unable to bootstrap because Invalid Python interpreter version

I'm trying to setup a Java project using Pants in Linux — specifically Arch Linux. I'm following the documentation to just install it, but I'm always getting an error when running ./pants --version: $ ./pants --version Invalid Python interpreter…
x80486
  • 6,627
  • 5
  • 52
  • 111
0
votes
1 answer

Import all libraries from Python package in pantsbuild

I want to import all the resources in my models/sources directory, into another target in pants build my contents of root/models/sources: ├── base.py ├── BUILD ├── design.py ├── email.py ├── __init__.py └── project_management.py The contents of my…
Gdfelt
  • 161
  • 15
0
votes
1 answer

Pants exclude specific Python dependencies

Currently, I am using pants to build and test our python2.7 packages. We started noticing the following error during run goal after pytests goal is completed. I tried adding constraints.txt file to exclude the dependencies its complaining about, but…
Ganga
  • 883
  • 12
  • 24
0
votes
1 answer

Having issue defining go_remote_library declaration for 3rdparty/go/golang.org/x/text:*

I'm trying to used github.com/spf13/viper which requires github.com/spf13/afero and that requires some of the 3rdparty/go/golang.org/x/text: packages. Till afero works, and when defining 3rdparty BUILD for text:* packages I get the following…
rako
  • 11
  • 2
0
votes
2 answers

Get access to local folder in Heron

I've written Heron topology which takes data from local folder and processes it. However, heron can't see any other folders except the one described in .pex file. How can I read data outside of .pex declared folders?
Alexandr Proskurin
  • 217
  • 1
  • 2
  • 7
0
votes
1 answer

Set pants interpreter for Pyarrow

I am using Pants to create .pex file for my project. My Build file has dependency for pyarrow using 3rdparty logic:'3rdparty/python:pyarrow'. Pants build pyarrow using both C++ and Python libraries, I have pyarrow install in anaconda not in standard…
Alexandr Proskurin
  • 217
  • 1
  • 2
  • 7
0
votes
1 answer

Pants build files integrate with maven repo

Is it possible to get pants to pull in dependencies from your local maven repo? I have searched and looked into the pants build system (new to me), and have had no luck anyone?
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
1 answer

Fails to install cryptography when a pants build is run

I try to run a dockerized pants build for a scala project and it fails with an error message "error in cryptography setup command: Invalid environment marker: python_version < '3' ". I haven't manually specified anything to install cryptography. In…
Aaryan
  • 1
  • 2
0
votes
1 answer

Pants and IntelliJ

I wonder if there is a way to force IntelliJ to update a pants-based Scala project once the BUILD file has been changed outside the IDE. Currently, the only way I have found to handle this is to re-create the project. Thanks in advance.
leco
  • 1,989
  • 16
  • 30
0
votes
0 answers

pants build store git metadata inside pex

is there a way to create a git metadata like (git commit #, branch , tag etc.,) in the pex file generated with Pants build ? if not , is there a way to hook into the goal of the pants build, so that i can generate the file which will then be…
Kamal
  • 325
  • 1
  • 3
  • 9
0
votes
1 answer

What is the purpose of the BUILD.tools file in a pants repo?

When installing pants into a new repo, it seems you need to copy BUILD.tools from the pants distribution into the root directory of the repo. What is this file used for? Do I need to edit this file? Do I need to update this file when I upgrade…
ericzundel
  • 550
  • 3
  • 11