Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Wrong directory encoding when building a windows setup from Linux

Reply
Thread Tools

Wrong directory encoding when building a windows setup from Linux

 
 
Benedict Verheyen
Guest
Posts: n/a
 
      01-20-2012
Hi,


I have a suite of scripts that I develop on Debian Linux, python version 2.7.1 but the resulting server
where the scripts are deployed to is Windows based.
I struggled making my setup.py file include data I need for my testing suite, but in the
end i succeeded by making a MANIFEST.in file containing "graft data" where data
is the name of the directory containing my test data.

Building an installable for Windows is easily done via python setup.py bdist_wininst
So far so good; The data contains directories with non ascii characters like , and so on.
Checking the build/lib/mypackage/data reveals that the names are still correct on Linux.
However, on Windows, the directory names aren't correct any more, the special chars
are replaced with other weird chars.
If I extract the .exe file on Windows using 7 zip, I can see that the directories in there are already wrong.

How can I fix this?
Is there a way to specify what encoding the directory names are using and how do I specify this in
the setup.py script?

Thanks,
Regards,
Benedict

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows active directory ldap output encoding jo3c Python 2 07-08-2008 08:58 AM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Windows XP Setup Restarts the Setup Program =?Utf-8?B?UmFkYXIxNjU=?= Windows 64bit 21 12-14-2005 04:27 AM
removing linux from a duall boot windows xp/linux setup Golf Nut Computer Information 1 04-24-2004 06:55 PM
Wrong default encoding on Linux Bernd Eggink Java 4 10-03-2003 08:54 AM



Advertisments