Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ascii': 0.07; 'subject:when': 0.07; 'python': 0.08; 'scripts': 0.09; 'linux.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'setup.py': 0.09; 'subject:windows': 0.09; 'subject:Wrong': 0.16; 'subject:setup': 0.16; 'thanks,': 0.18; 'this?': 0.19; "aren't": 0.21; 'linux,': 0.21; 'debian': 0.23; 'deployed': 0.23; 'suite,': 0.23; 'extract': 0.24; 'specify': 0.24; 'windows': 0.26; 'testing': 0.26; 'fix': 0.27; 'replaced': 0.28; 'weird': 0.28; 'skip:b 20': 0.29; 'server': 0.30; 'correct': 0.31; 'version': 0.31; 'done': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python- list': 0.33; 'there': 0.33; 'checking': 0.34; 'hi,': 0.34; 'succeeded': 0.34; 'header:X-Complaints-To:1': 0.34; 'test': 0.35; 'however,': 0.35; 'file': 0.35; 'data.': 0.36; 'encoding': 0.36; 'but': 0.37; 'received:org': 0.37; 'using': 0.37; 'resulting': 0.38; 'non': 0.38; 'characters': 0.38; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'data': 0.40; 'received:188': 0.63; 'making': 0.65; 'special': 0.67; '2.7.1': 0.84; 'benedict': 0.84; 'reveals': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Benedict Verheyen Subject: Wrong directory encoding when building a windows setup from Linux Date: Fri, 20 Jan 2012 09:42:24 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: ip-188-118-10-225.reverse.destiny.be User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.24) Gecko/20111103 Lightning/1.0b2 Thunderbird/3.1.16 X-Enigmail-Version: 1.1.1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327048962 news.xs4all.nl 6872 [2001:888:2000:d::a6]:58485 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19140 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