create Python "make" file

B

beliavsky

I know that you do not need a make file to run a Python program -- it
looks for the needed sources files in the working directory and in
directories in the path. But it is convenient to know what Python
source files a program uses, if you want to back up a program or send
it to a colleague.

Has anyone written a Python tool that looks at all the Python source
files in a directory and constructs lists of sources, each of which
comprises a program?
 
P

Peter Hansen

I know that you do not need a make file to run a Python program -- it
looks for the needed sources files in the working directory and in
directories in the path. But it is convenient to know what Python
source files a program uses, if you want to back up a program or send
it to a colleague.

Has anyone written a Python tool that looks at all the Python source
files in a directory and constructs lists of sources, each of which
comprises a program?

In effect py2exe and its ilk do just that. You should be able to
find the relevant chunks of code in there for re-use if you wish.

-Peter
 

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

Forum statistics

Threads
474,178
Messages
2,570,955
Members
47,509
Latest member
Jack116

Latest Threads

Top