full-oyster-41619
09/29/2020, 11:38 AMsetup-py goal with --version arguments? similar to
$ python dist/my-lib-name/setup.py --version
1.0.0
I have tried the following, but it does not show any output
$ ./pants setup-py my-lib-path:my-lib-name -- "--version"
11:37:22.85 [INFO] Writing dist for my-lib-path:my-lib-name under dist/.
Seems that somehow, pants "hides" the output
Is there any other way I can view the version of a python_library/python_dist/python_binary?witty-crayon-22786
09/29/2020, 6:05 PM--version the only setup-py command you’d like the output of, or are there others?witty-crayon-22786
09/29/2020, 7:00 PMBUILD file in the setup_py struct? https://www.pantsbuild.org/docs/python-setup-py-goalhappy-kitchen-89482
09/29/2020, 8:02 PM./pants setup-py my-lib-path:my-lib-name -- "--version"
to workhappy-kitchen-89482
09/29/2020, 8:08 PMhappy-kitchen-89482
09/29/2020, 11:56 PMhappy-kitchen-89482
09/29/2020, 11:56 PMhappy-kitchen-89482
09/29/2020, 11:56 PMhappy-kitchen-89482
09/30/2020, 12:02 AM./pants -ldebug setup-py my-lib-path:my-lib-name -- "--version"happy-kitchen-89482
09/30/2020, 12:02 AM-ldebug causes Pants to replay stdout/stderr from processes it invokeshappy-kitchen-89482
09/30/2020, 12:03 AMfull-oyster-41619
09/30/2020, 9:40 AMfull-oyster-41619
09/30/2020, 9:41 AMpython_library(
    name = "nci-core.lib",
    sources = ['**/*.py'],
    dependencies = [
        ...
    ]
)
python_distribution(
    name="nci-core.dist",
    dependencies = [
        ":nci-core.lib"
    ],
    provides=setup_py(
        name="nci-core",
        description="NCI Core",
        version="1.0.0"
    )
)