py2exe Excludes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Leafe

    #1

    py2exe Excludes

    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

    PEJUANGJITU hadir sebagai agen toto dengan situs togel online yang terpercaya sehingga menjadikan kami PEJUANG JITU sebagai website dengan pencarian terbanyak di 2026 ini.


  • vincent wehren

    #2
    Re: py2exe Excludes

    Ed Leafe wrote:[color=blue]
    > 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?[/color]

    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


    [color=blue]
    >
    > ___/
    > /
    > __/
    > /
    > ____/
    > Ed Leafe
    > http://leafe.com/
    > http://dabodev.com/
    >[/color]

    Comment

    • Ed Leafe

      #3
      Re: py2exe Excludes

      On Jan 13, 2005, at 12:04 AM, vincent wehren wrote:
      [color=blue]
      > 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.[/color]

      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

      PEJUANGJITU hadir sebagai agen toto dengan situs togel online yang terpercaya sehingga menjadikan kami PEJUANG JITU sebagai website dengan pencarian terbanyak di 2026 ini.


      Comment

      Working...