I wrote a few games for a competition in Stackless Python and needed to create an executable. Accidentally though, I used CPython 2.6 instead of using Stackless Python 2.5 to build the executable. I rebuilt correctly, and found that the final size of the dist was down from slightly over 30 MB down to around 8. Out of curiosity, why exactly was this? As a guess, I would hazard that it is because I have installed libraries like Twisted and Qt4 in CPython, but not in Stackless, and Py2exe packages in everything, whether or not they are used (possibly because you can always call code dynamically), but if anyone actually knows, I would be interested in learning why.
Why Is My Stackless Executable So Much Smaller
299 Views Asked by Nikwin At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PY2EXE
- Script with scipy using py2exe
- py2exe: Allow a console window to be either shown or hidden with a sys.argv
- Qt platform plugin 'windows' - py2exe
- py2exe, executable: How to pack data into single file?
- How to create .exe from python script with modules and dependent files
- Python Py2exe Error After Compile
- Import modules after compilation with py2exe
- RuntimeError: maximum recursion depth exceeded [py2exe]
- cmd/DOS window opens with GUI created with py2exe
- Py2exe: Import error when executes created exe file
- python: my py2exe windows app makes .dat AND (unwanted) .bat file AND (unwanted) .dir file
- Trying to use Py2exe, keep getting errors
- py2exe not recognizing jsonschema
- Maximum recursion depth while using py2exe
- PyQt4 GUI to exe using py2exe - Adding python27.dll causes crash
Related Questions in CPYTHON
- Does Python automatically replace * 2 with << 1?
- How to move up and down between stack frames?
- weird behaviour of late import and scopes
- New python type created but PyGetSetDef core dumps
- What is python-dev package used for
- Python dictionary size vs object size efficiency
- Python C package source code header files are missing
- how to run a C code with argc argv from python?
- Unable to run CPython Script Executor in Pentaho
- Why syntax error messages for some built-in functions are different?
- How can asyncio ever not be thread safe considering the GIL?
- Determining if a memory leak is occurring in Python
- Why is PyObject_SetAttrString returning -1 (Python C-API)
- Python Threads are not Improving Speed
- How to break a direct reference cycle in CPython
Related Questions in STACKLESS
- Stackless Scala With Free Monads, complete example
- Why PyPy 1.7 desn't implement "stackless" stack?
- Does Pypy's stackless thread option support parallel execution?
- Are there stackless or heapless implementation of C++?
- Stackless Python and PyQt
- how stackless python can be fast for concurrency?
- Is there a stackless and heapless programming language?
- Resume ASIO Stackless Coroutine
- Haskell implemented without a stack?
- Has the use of C to implement other languages constrained their designs in any way?
- Stackless Python development using Python Tools for Visual Studio
- Any ready solution for basic asynchronous (non-blocking) HTTP clients with Stackless Python 3.1?
- Which JVM languages are stackless?
- How to eliminate this type of recursion?
- Would C/C++/Pascal/etc. be substantially slower if it was a stackless language?
Related Questions in PYTHON-STACKLESS
- python program without stackless.run()
- PyCharm can't resolve stackless
- Install Stackless without uninstalling Python
- Stackless in PyPy and PyPy + greenlet - differences
- Why PyPy 1.7 desn't implement "stackless" stack?
- stackless python constructor
- How to pass arguments to a python greenlet as additional arguments
- Designing the storage for a very large game world
- Stackless Python and PyQt
- how stackless python can be fast for concurrency?
- MySQL driver issues with INFORMATION_SCHEMA?
- mod_python is not loading stackless Python
- Which Actor model library/framework for python and Erlang-like?
- nagare framework on gae?
- Why does the Python/C API crash on PyRun_SimpleFile?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
py2exe does look through to your dependencies and only includes the ones it thinks you're using. You can manually specify an exclude list if it's including extra modules.
Check out this py2exe script (replace "setup.py" with the name of your own main py file). This setup script skips the bundling step, so you can look through to see what is taking up the most space.