Skip to content

Commit

Permalink
Fix gcc no input file issues by passing dummy file
Browse files Browse the repository at this point in the history
For Linux UCS2, the build was failing due to gcc complaining it could not find any files. This reproduced locally when running `./pants3 setup-py --run="bdist_wheel --py-limited-api cp36" src/python/pants:pants-packaged` on OSX.

John suggested and gave the code snippet to pass a dummy file so this no longer happens. Thanks John!
  • Loading branch information
Eric-Arellano committed Feb 19, 2019
1 parent edf81ef commit 0b59e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ target(

python_library(
name='pants-packaged',
sources=[],
sources=['dummy.c'],
dependencies=[
':version',
],
provides=pants_setup_py(
name='pantsbuild.pants',
description='A scalable build tool for large, complex, heterogeneous repos.',
namespace_packages=['pants', 'pants.backend'],
ext_modules=[('native_engine', {'sources': []})],
ext_modules=[('native_engine', {'sources': ['src/pants/dummy.c']})],
).with_binaries(
pants='src/python/pants/bin:pants',
)
Expand Down
Empty file added src/python/pants/dummy.c
Empty file.

0 comments on commit 0b59e46

Please sign in to comment.