2nd Q: when doing `./pex_binary pex -c pex -o pex....
# pex
w
2nd Q: when doing
./pex_binary pex -c pex -o pex.pex
, how does it figure out
pex.bin.pex:main
is entry point?
oh is it from
Copy code
pypipex/pex-1.4.4.dist-info/metadata.json
1:{"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: Unix", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6"], "extensions": {"python.commands": {"wrap_console": {"pex": "pex.bin.pex:main"}}, "python.details": {"document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "<https://github.com/pantsbuild/pex>"}}, "python.exports": {"console_scripts": {"pex": "pex.bin.pex:main"}, "distutils.commands": {"bdist_pex": "pex.commands.bdist_pex:bdist_pex"}}}, "extras": ["cachecontrol", "requests", "subprocess"], "generator": "bdist_wheel (0.29.0)", "license": "Apache License, Version 2.0", "metadata_version": "2.0", "name": "pex", "run_requires": [{"extra": "cachecontrol", "requires": ["CacheControl (>=0.12.3)"]}, {"extra": "requests", "requires": ["requests (>=2.8.14)"]}, {"requires": ["setuptools (<34.0,>=20.3)", "wheel (>=0.26.0,<0.30.0)"]}, {"extra": "subprocess", "requires": ["subprocess32 (>=3.2.7)"]}], "summary": "The PEX packaging toolchain.", "test_requires": [{"requires": ["mock", "pytest", "twitter.common.contextutil (<0.4.0,>=0.3.1)", "twitter.common.dirutil (<0.4.0,>=0.3.1)", "twitter.common.lang (<0.4.0,>=0.3.1)", "twitter.common.testing (<0.4.0,>=0.3.1)"]}], "version": "1.4.4"}
?
e
Yes. The -c looks for the console script entry point of that name.
👍 1