distutiles extension question

  • Thread starter Eric S. Johansson
  • Start date
E

Eric S. Johansson

How can I limit when my code run only when it's a build or install
setup.py command and only after the setup method?

I need to do some processing after setup.py runs and I've been
successful writing the code to do what I need but the problem is it runs
every time I run setup.py regardless of the command following.

looking in build.py, I found and internal array called sub_commands and
it looks like that would be a good place to add my postprocessing but I
can't figure out quite how to get my code into the right context.

some pointers would be appreciated. Thanks for your time.

---eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top