patching filelist.py to allow quoted strings
![](https://secure.gravatar.com/avatar/6c66d1767ddde59b5306bdbfea2c6eca.jpg?s=120&d=mm&r=g)
Dmitry Balabanov on python-help had requested information about why the following Manifest.in line didn't work; he used the following line: ### recursive-include 'Max Fray' *.txt ### Because there were spaces in the directory, it didn't quite parse correctly. I've isolated filelist._parse_template_line() to be responsible for parsing out these lines. _parse_template_line() uses a simple string.split() to break a line into tokens. I'd like to know if it's a good idea to allow spaces in directory names like that. I'm attaching a patch that tries to split the line and takes quoted elements into account. I'm in digest mode, and a newbie at distutils, so please be gentle. *grin* --- Original message follows below: ---
From dimonb@beep.ru Sat Mar 10 11:36:01 2001 From: dimonb@beep.ru (Balabanov Dmitry) Date: Sat, 10 Mar 2001 11:36:01 +0000 Subject: [Python-Help] help with distutils Message-ID: <01031011360100.00515@doors>
Hi!! Problem is very simple but i can't solve it... I have such string in MANIFEST.in: recursive-include 'Max Fray' *.txt But `python setup.py sdist --manifest-only` spawns: running sdist warning: sdist: missing required meta-data: url reading manifest template 'MANIFEST.in' warning: no files found matching 'Fray'' under directory ''Max' warning: no files found matching '*.txt' under directory ''Max' writing manifest file 'MANIFEST' problem is rather simple but i don't know how to solve it with simple methods:) do you? Best regards, DimonB
participants (1)
-
Daniel Yoo