473,385 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

library.zip and 7zip

Hello there

I am developing an application using wxPython and some other libraries
(including, now pysqlite 0.5.1).

I am distributing this app using py2exe and innosetup

I'm trying to reduce the size of my distribution (the setup.exe file as
well as the final install size)

I am using upx to reduce the size of my executables (not a clue how it
works, but it does reduce the size significantly)

Now I am trying to use 7 zip to reduce the size of my library.zip file,
but this seems to break the application.

I am trying to do this: (from
http://starship.python.net/crew/thel...terCompression)

7z.exe -aoa x library.zip -olibrary\
del library.zip

cd library\
7z.exe a -tzip -mx9 ..\library.zip -r
cd..
rd library /s /q

upx.exe --best *.*

which works fine when I skip the 7z bit, but that breaks it?

Any advice ?

thanks
jaco
Jul 18 '05 #1
3 5153
Jaco Smuts wrote:
Now I am trying to use 7 zip to reduce the size of my library.zip
file, but this seems to break the application.


Describing a failure in such a vague manner as 'seems to break' is
not likely to help us help you.

Can you be more specific? Exception traceback? Error messages?
Anything?

-Peter
Jul 18 '05 #2
Jaco Smuts wrote:
... I am trying to use 7 zip to reduce the size of my library.zip file,
but this seems to break the application....
Any advice ?

7zip uses the most recent ZIP specification, while Python's zip only
allows access to "ZIP_STORED" and "ZIP_DEFLATED" compression. I've a
back-burner project to add at least BZIP2 compression to zipfile, but
I've had problems getting good small test cases using other
compressions. I tried 7zip when I was looking, but it was pretty
broken on Win2K at the time. Sometime this fall, the patent on
"IMPLODE" will expire,and that may be the right time to add that
as well to zipfile.
--
-Scott David Daniels
Sc***********@Acm.Org
Jul 18 '05 #3
Scott David Daniels wrote:
Jaco Smuts wrote:
... I am trying to use 7 zip to reduce the size of my library.zip
file, but this seems to break the application....
Any advice ?


7zip uses the most recent ZIP specification, while Python's zip only
allows access to "ZIP_STORED" and "ZIP_DEFLATED" compression. I've a
back-burner project to add at least BZIP2 compression to zipfile, but
I've had problems getting good small test cases using other
compressions. I tried 7zip when I was looking, but it was pretty
broken on Win2K at the time. Sometime this fall, the patent on
"IMPLODE" will expire,and that may be the right time to add that
as well to zipfile.


Shouldn't somebody remove that recipe from the wiki then? Or
can it in fact work (sometimes?), and the explanation is something
else?

-Peter
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
4
by: womanontheinside | last post by:
I have a library which was written in C, you call a function, it provides the result by a callback to specific function names. I am trying to wrap the calls to this inside a class, but this causes...
3
by: K.S.Liang | last post by:
Hi all, 1> If there are more than one dynamic linking libraries in the file system, how do I know which one is loaded into system? Any C library or system call can tell me which *.so or *.sl is...
19
by: Deniz Bahar | last post by:
Hi, I would like to call one of my functions the exact name as an existing C library function (for example K&R2 exercises asks me to make an atof function). If I don't include the header with...
10
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using...
0
by: mpmason14 | last post by:
for those of you who don't know, 7zip is like winzip, but does not have a max. compression size i have a batch file to backup folders on my server. i use 7zip to compress the files during the...
0
by: jack | last post by:
I start process 7zip (http://www.7-zip.org/): myProc.StartInfo.FileName = Application.StartupPath + @"\7z.exe"; myProc.StartInfo.Arguments = "a -mx9 -y -r " + pathwhat + " " pathwhere...
0
by: JosAH | last post by:
Greetings, the last two article parts described the design and implementation of the text Processor which spoonfeeds paragraphs of text to the LibraryBuilder. The latter object organizes, cleans...
4
by: > Adrian | last post by:
MSDN Library (April 2007 Edition) MSDN Library (April 2007 Edition) can be downloaded. One is supposed to use the setup on disk #1, but the downloaded file cannot be opened. Anybody got the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.