By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

py2exe Excludes

P: n/a
I'm trying to make a Windows runtime for Dabo, and I want to exclude
the framework code itself from the exe file, so that people can update
with new releases as they are made. The relevant section of setup.py
has:

setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "0.3.0",
description = "Dabo Runtime Engine",
name = "daborun",
# targets to build
console = ["daborun.py"],
#exclude the actual framework
options = { "py2exe": {"excludes" : ["dabo"]} },
)

Yet the generated library.zip still contains all of the Dabo module
code. Why is this? What am I doing wrong?

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ed Leafe wrote:
I'm trying to make a Windows runtime for Dabo, and I want to exclude
the framework code itself from the exe file, so that people can update
with new releases as they are made. The relevant section of setup.py has:

setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "0.3.0",
description = "Dabo Runtime Engine",
name = "daborun",
# targets to build
console = ["daborun.py"],
#exclude the actual framework
options = { "py2exe": {"excludes" : ["dabo"]} },
)

Yet the generated library.zip still contains all of the Dabo module
code. Why is this? What am I doing wrong?
Just a guess: What happens if you remove everything that's in the
"build" directory before running setup.py? There may still be files
around from an earlier build that *did* include the Dabo modules.

--
Vincent Wehren

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/

Jul 18 '05 #2

P: n/a
On Jan 13, 2005, at 12:04 AM, vincent wehren wrote:
Just a guess: What happens if you remove everything that's in the
"build" directory before running setup.py? There may still be files
around from an earlier build that *did* include the Dabo modules.


Ah, that was it! I didn't realize that it would still pull those
things in there. I wiped out the build directory and re-ran setup, and
it's now what I expected. Thanks!

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.