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
0 answers

Django manage.py ModuleNotFoundError with Pants

First time poster, so let me know if I need to provide more info! I have a Django project of the following structure: a/b/c/d/ ├── e │ ├── BUILD.pants │ ├── myapp │ │ ├── BUILD.pants │ │ ├── migrations │ │ ├── models.py │ │ ├──…
1
vote
1 answer

Can bazel package depend on a source file in another package

A few years ago I wrote a set of wrappers for Bazel that enabled me to use it to build FPGA code. The FPGA bit is only relevant because the full clean build takes many CPU days so I really care about caching and minimizing rebuilds. Using Bazel…
Fenster34
  • 438
  • 5
  • 11
1
vote
0 answers

Pantsbuild: how to skip JVM class duplicates for a Scala library?

I'm using pants v1.30.0 and I need to find a workaround to build a Scala fat JAR that includes pureconfig v0.14.0. Pantsbuild detect-duplicates: Detect JVM classes and resources with the same qualified name on the classpath. I'm experiencing the…
sentenza
  • 1,608
  • 3
  • 29
  • 51
1
vote
1 answer

Importing json resources inside .pex (Python Executable (format by Twitter))

I'm using a Twitter engineered build tool pants to manage many projects inside my monorepo. It outputs .pex files when I complete a build, this is a binary that packages the bare minimum dependencies I need for each project and makes them a "binary"…
Gdfelt
  • 161
  • 15
1
vote
0 answers

python pants ModuleNotFoundError when using python 3

I am new to python and attempting to setup up a mono repo using pants as the build system. All has been going well, until I told pants to use a python 3 interpreter by setting in pants.ini [python-setup] interpreter_constraints:…
Daniel
  • 11
  • 3
1
vote
0 answers

DistUtilsError: Could not find suitable distribution for Requirements.parse Cython

While building my python source code using "pants", the build fails with "DistutilsError: Could not find suitable distribution for Requirement.parse('Cython!=0.25,<0.30,>=0.20')" Following is a snapshot of error: 19:18:49 00:00 [main] …
Arun T
  • 21
  • 1
  • 4
1
vote
2 answers

Subproject dependencies in pants

I am new to using pantsbuild and I can't seem to find any good questions, answers, or documentation around my dillema. I have a Pants project which should be buildable on its own. It has its own pants and pants.ini file as well as all BUILD files…
1
vote
1 answer

pants: cannot get lxml distribution pip requirement

I am working on creating a Python project which includes the BeautifulSoup module. As part of this, I require the ability to parse XML, and as a dependency on that, I require that the lxml module is installed. I am attempting to build a PEX file…
Huckphin
  • 410
  • 4
  • 17
1
vote
1 answer

Issue with pants build tool on a "Hello World" example

I was doing a "Hello World" exercise with Twitter's Pants build tool. After cloned the "pants" repo - source, I successfully configured pants on my local. First, I created an nested dir in the repo as: $ mkdir -p mark/python/project_test Then, I…
Mark Li
  • 429
  • 1
  • 7
  • 21
1
vote
1 answer

Pants: Generate Python from Protocol Buffers

Is it possible to generate Python code from Protocol Buffers message definitions using Pants? Looking through the documentation and the examples of Pants I was unable to find any instructions how to generate Python code from Protocol Buffers message…
aha
  • 3,702
  • 3
  • 38
  • 47
1
vote
0 answers

Eliminating warnings from [binary.dup] step in pants.ini

I am working on culling unnecessary output from the binary 'dup' step in my build. When I run ./pants binary I have many instances of duplicates for META-INF/services: Duplicate classes and/or resources detected in artifacts:…
ericzundel
  • 550
  • 3
  • 11
1
vote
1 answer

Invalid gopkg.in package and rev in

When attempting to build with Pants, I am seeing the following error: File "build/bdist.macosx-10.10-intel/egg/pants/contrib/go/tasks/go_fetch.py", line 154, in _transitive_download_remote_libs all_known_addresses) File…
Huckphin
  • 410
  • 4
  • 17
1
vote
1 answer

go_remote_library usage in Pants

I am currently attempting to use the go_remote_library target??, package??, plugin?? in Pants. Real simple question, here: If in my code I have the import listed as: import( "github.com/golang/groupcache" ) is it valid for me to specify a name of…
Huckphin
  • 410
  • 4
  • 17
1
vote
1 answer

Install pants build tool on Anaconda 1.7.0

I need to install pantsbuild on to an Anaconda python installation of 1.7.0. This is running on CentOS 7 and the Anaconda version cannot change. I have set the PATH so that it points to the Anaconda installation of python. So I cloned the github…
laali
  • 21
  • 5
1
vote
1 answer

When running ./pants idea with multiple targets, why doesn't IntelliJ respect my dependencies?

When running ./pants idea on multiple targets, the generated IntelliJ project allows me to reference code that my targets don't actually depend on. Here's an example from the pants ./pants idea examples/tests/java/com/pants/examples/hello/greet::…
ericzundel
  • 550
  • 3
  • 11