looking for some solutions? You are welcome.

SOLVED: Python - Pass Arguments to setup file


I have a setup file that creates an executable using py2exe. To run the setup file I enter

python setup.py py2exe.

I would like to pass versioning information so that the executable generated will be created in a specialized directory with the version, as well as set up versioning metadata.

I tried using argparse but that seems to override the setup.py parameters.

Is there a way to pass additional parameters to setup.py elegantly; preferably with flags? python setup.pu py2exe -v [VERSION]

I know I can parse the command in python but I would like to be able to specify flags if possible...

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered

No comments: