Merge lp:~gary/zc.buildout/python-support-1-cleanup into lp:zc.buildout
- python-support-1-cleanup
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~gary/zc.buildout/python-support-1-cleanup |
Merge into: | lp:zc.buildout |
Diff against target: |
296 lines (+36/-30) 9 files modified
README.txt (+1/-1) src/zc/buildout/easy_install.py (+5/-5) src/zc/buildout/testing.py (+6/-2) src/zc/buildout/tests.py (+2/-1) zc.recipe.egg_/src/zc/recipe/egg/README.txt (+2/-2) zc.recipe.egg_/src/zc/recipe/egg/api.txt (+4/-3) zc.recipe.egg_/src/zc/recipe/egg/custom.txt (+9/-9) zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt (+3/-3) zc.recipe.egg_/src/zc/recipe/egg/tests.py (+4/-4) |
To merge this branch: | bzr merge lp:~gary/zc.buildout/python-support-1-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | Approve | ||
Review via email: mp+19532@code.launchpad.net |
Commit message
Description of the change
- 538. By Gary Poster
-
merge from trunk
Francis J. Lacoste (flacoste) wrote : | # |
> === modified file 'src/zc/
> --- src/zc/
> +++ src/zc/
> @@ -492,10 +492,14 @@
> path = path[1:]
> return '/' + path.replace(
>
> +if sys.platform == 'win32':
> + sep = r'[\\/]' # Windows uses both sometimes.
> +else:
> + sep = re.escape(
> normalize_path = (
> re.compile(
> - r'''[^'" \t\n\r]
> - % dict(sep=
> + r'''[^'" \t\n\r]
> + % dict(sep=sep)),
> _normalize_path,
> )
I don't understand why you removed the backslash from the normalize_path
regex. IS it that you want the backslash to be a separator only on windows?
Rest looks good.
Gary Poster (gary) wrote : | # |
Thank you!
I didn't remove the backslash--I switched to using re.escape (for non-Windows). The backslash I removed was escaping the path separator.
For Windows, then, the result will be this.
[^'" \t\n\r]
IOW, the path separator might be a backslash (Windows path) or a forward slash (typically when it is a URI).
For everything else (if we assume that everything else uses a forward slash for path separators), it will *continue* to be the following, at least effectively (forward slashes actually don't need to be escaped, IIRC, so re.escape won't do anything, and the backslashes didn't do anything before).
[^'" \t\n\r]
Actually, now that I think of it, a better change would be this:
sep = os.path.sep
if sep != "/":
sep = r'[%s/]' % re.escape(sep) # May be a path or a URI\
...
and then the compilation
Unmerged revisions
- 538. By Gary Poster
-
merge from trunk
- 537. By gary
-
the whitespace-police, the typo-police, the grammar police, and the Windows testing police all joined together for this check-in of mostly trivial changes.
- 536. By gary
-
another typo branch
Preview Diff
1 | === modified file 'README.txt' | |||
2 | --- README.txt 2010-01-08 05:54:43 +0000 | |||
3 | +++ README.txt 2010-02-17 21:22:11 +0000 | |||
4 | @@ -126,7 +126,7 @@ | |||
5 | 126 | `--version` option of the bootstrap.py script:: | 126 | `--version` option of the bootstrap.py script:: |
6 | 127 | 127 | ||
7 | 128 | $ python bootstrap.py --version 1.1.3 | 128 | $ python bootstrap.py --version 1.1.3 |
9 | 129 | 129 | ||
10 | 130 | The `zc.buildout project <http://svn.zope.org/zc.buildout/trunk>`_ | 130 | The `zc.buildout project <http://svn.zope.org/zc.buildout/trunk>`_ |
11 | 131 | is a slightly more complex example of this type of buildout. | 131 | is a slightly more complex example of this type of buildout. |
12 | 132 | 132 | ||
13 | 133 | 133 | ||
14 | === modified file 'src/zc/buildout/easy_install.py' | |||
15 | --- src/zc/buildout/easy_install.py 2009-11-11 21:21:11 +0000 | |||
16 | +++ src/zc/buildout/easy_install.py 2010-02-17 21:22:11 +0000 | |||
17 | @@ -495,7 +495,7 @@ | |||
18 | 495 | 495 | ||
19 | 496 | if dist is None: | 496 | if dist is None: |
20 | 497 | raise zc.buildout.UserError( | 497 | raise zc.buildout.UserError( |
22 | 498 | "Couln't download distribution %s." % avail) | 498 | "Couldn't download distribution %s." % avail) |
23 | 499 | 499 | ||
24 | 500 | if dist.precedence == pkg_resources.EGG_DIST: | 500 | if dist.precedence == pkg_resources.EGG_DIST: |
25 | 501 | # It's already an egg, just fetch it into the dest | 501 | # It's already an egg, just fetch it into the dest |
26 | @@ -628,9 +628,9 @@ | |||
27 | 628 | logger.debug('Installing %s.', repr(specs)[1:-1]) | 628 | logger.debug('Installing %s.', repr(specs)[1:-1]) |
28 | 629 | 629 | ||
29 | 630 | path = self._path | 630 | path = self._path |
33 | 631 | dest = self._dest | 631 | destination = self._dest |
34 | 632 | if dest is not None and dest not in path: | 632 | if destination is not None and destination not in path: |
35 | 633 | path.insert(0, dest) | 633 | path.insert(0, destination) |
36 | 634 | 634 | ||
37 | 635 | requirements = [self._constrain(pkg_resources.Requirement.parse(spec)) | 635 | requirements = [self._constrain(pkg_resources.Requirement.parse(spec)) |
38 | 636 | for spec in specs] | 636 | for spec in specs] |
39 | @@ -661,7 +661,7 @@ | |||
40 | 661 | except pkg_resources.DistributionNotFound, err: | 661 | except pkg_resources.DistributionNotFound, err: |
41 | 662 | [requirement] = err | 662 | [requirement] = err |
42 | 663 | requirement = self._constrain(requirement) | 663 | requirement = self._constrain(requirement) |
44 | 664 | if dest: | 664 | if destination: |
45 | 665 | logger.debug('Getting required %r', str(requirement)) | 665 | logger.debug('Getting required %r', str(requirement)) |
46 | 666 | else: | 666 | else: |
47 | 667 | logger.debug('Adding required %r', str(requirement)) | 667 | logger.debug('Adding required %r', str(requirement)) |
48 | 668 | 668 | ||
49 | === modified file 'src/zc/buildout/testing.py' | |||
50 | --- src/zc/buildout/testing.py 2009-11-06 22:33:23 +0000 | |||
51 | +++ src/zc/buildout/testing.py 2010-02-17 21:22:11 +0000 | |||
52 | @@ -492,10 +492,14 @@ | |||
53 | 492 | path = path[1:] | 492 | path = path[1:] |
54 | 493 | return '/' + path.replace(os.path.sep, '/') | 493 | return '/' + path.replace(os.path.sep, '/') |
55 | 494 | 494 | ||
56 | 495 | if sys.platform == 'win32': | ||
57 | 496 | sep = r'[\\/]' # Windows uses both sometimes. | ||
58 | 497 | else: | ||
59 | 498 | sep = re.escape(os.path.sep) | ||
60 | 495 | normalize_path = ( | 499 | normalize_path = ( |
61 | 496 | re.compile( | 500 | re.compile( |
64 | 497 | r'''[^'" \t\n\r]+\%(sep)s_[Tt][Ee][Ss][Tt]_\%(sep)s([^"' \t\n\r]+)''' | 501 | r'''[^'" \t\n\r]+%(sep)s_[Tt][Ee][Ss][Tt]_%(sep)s([^"' \t\n\r]+)''' |
65 | 498 | % dict(sep=os.path.sep)), | 502 | % dict(sep=sep)), |
66 | 499 | _normalize_path, | 503 | _normalize_path, |
67 | 500 | ) | 504 | ) |
68 | 501 | 505 | ||
69 | 502 | 506 | ||
70 | === modified file 'src/zc/buildout/tests.py' | |||
71 | --- src/zc/buildout/tests.py 2009-11-11 21:21:11 +0000 | |||
72 | +++ src/zc/buildout/tests.py 2010-02-17 21:22:11 +0000 | |||
73 | @@ -2880,7 +2880,7 @@ | |||
74 | 2880 | 'We have a develop egg: zc.buildout X.X.'), | 2880 | 'We have a develop egg: zc.buildout X.X.'), |
75 | 2881 | (re.compile(r'\\[\\]?'), '/'), | 2881 | (re.compile(r'\\[\\]?'), '/'), |
76 | 2882 | (re.compile('WindowsError'), 'OSError'), | 2882 | (re.compile('WindowsError'), 'OSError'), |
78 | 2883 | (re.compile(r'\[Error 17\] Cannot create a file ' | 2883 | (re.compile(r'\[Error \d+\] Cannot create a file ' |
79 | 2884 | r'when that file already exists: '), | 2884 | r'when that file already exists: '), |
80 | 2885 | '[Errno 17] File exists: ' | 2885 | '[Errno 17] File exists: ' |
81 | 2886 | ), | 2886 | ), |
82 | @@ -2933,6 +2933,7 @@ | |||
83 | 2933 | (re.compile('extdemo[.]pyd'), 'extdemo.so'), | 2933 | (re.compile('extdemo[.]pyd'), 'extdemo.so'), |
84 | 2934 | (re.compile('[-d] setuptools-\S+[.]egg'), 'setuptools.egg'), | 2934 | (re.compile('[-d] setuptools-\S+[.]egg'), 'setuptools.egg'), |
85 | 2935 | (re.compile(r'\\[\\]?'), '/'), | 2935 | (re.compile(r'\\[\\]?'), '/'), |
86 | 2936 | (re.compile(r'\#!\S+\bpython\S*'), '#!/usr/bin/python'), | ||
87 | 2936 | ]+(sys.version_info < (2, 5) and [ | 2937 | ]+(sys.version_info < (2, 5) and [ |
88 | 2937 | (re.compile('.*No module named runpy.*', re.S), ''), | 2938 | (re.compile('.*No module named runpy.*', re.S), ''), |
89 | 2938 | (re.compile('.*usage: pdb.py scriptfile .*', re.S), ''), | 2939 | (re.compile('.*usage: pdb.py scriptfile .*', re.S), ''), |
90 | 2939 | 2940 | ||
91 | === modified file 'zc.recipe.egg_/src/zc/recipe/egg/README.txt' | |||
92 | --- zc.recipe.egg_/src/zc/recipe/egg/README.txt 2009-11-06 22:33:23 +0000 | |||
93 | +++ zc.recipe.egg_/src/zc/recipe/egg/README.txt 2010-02-17 21:22:11 +0000 | |||
94 | @@ -46,7 +46,7 @@ | |||
95 | 46 | <a href="other-1.0-py2.3.egg">other-1.0-py2.3.egg</a><br> | 46 | <a href="other-1.0-py2.3.egg">other-1.0-py2.3.egg</a><br> |
96 | 47 | </body></html> | 47 | </body></html> |
97 | 48 | 48 | ||
99 | 49 | We have a sample buildout. Let's update it's configuration file to | 49 | We have a sample buildout. Let's update its configuration file to |
100 | 50 | install the demo package. | 50 | install the demo package. |
101 | 51 | 51 | ||
102 | 52 | >>> write(sample_buildout, 'buildout.cfg', | 52 | >>> write(sample_buildout, 'buildout.cfg', |
103 | @@ -187,7 +187,7 @@ | |||
104 | 187 | ... interpreter = py-demo | 187 | ... interpreter = py-demo |
105 | 188 | ... """ % dict(server=link_server)) | 188 | ... """ % dict(server=link_server)) |
106 | 189 | 189 | ||
108 | 190 | Note that we ommitted the entry point name from the recipe | 190 | Note that we omitted the entry point name from the recipe |
109 | 191 | specification. We were able to do this because the scripts recipe is | 191 | specification. We were able to do this because the scripts recipe is |
110 | 192 | the default entry point for the zc.recipe.egg egg. | 192 | the default entry point for the zc.recipe.egg egg. |
111 | 193 | 193 | ||
112 | 194 | 194 | ||
113 | === modified file 'zc.recipe.egg_/src/zc/recipe/egg/api.txt' | |||
114 | --- zc.recipe.egg_/src/zc/recipe/egg/api.txt 2008-07-15 23:09:58 +0000 | |||
115 | +++ zc.recipe.egg_/src/zc/recipe/egg/api.txt 2010-02-17 21:22:11 +0000 | |||
116 | @@ -15,7 +15,7 @@ | |||
117 | 15 | around the egg recipe: | 15 | around the egg recipe: |
118 | 16 | 16 | ||
119 | 17 | >>> mkdir(sample_buildout, 'sample') | 17 | >>> mkdir(sample_buildout, 'sample') |
121 | 18 | >>> write(sample_buildout, 'sample', 'sample.py', | 18 | >>> write(sample_buildout, 'sample', 'sample.py', |
122 | 19 | ... """ | 19 | ... """ |
123 | 20 | ... import logging, os | 20 | ... import logging, os |
124 | 21 | ... import zc.recipe.egg | 21 | ... import zc.recipe.egg |
125 | @@ -53,7 +53,7 @@ | |||
126 | 53 | >>> write(sample_buildout, 'sample', 'setup.py', | 53 | >>> write(sample_buildout, 'sample', 'setup.py', |
127 | 54 | ... """ | 54 | ... """ |
128 | 55 | ... from setuptools import setup | 55 | ... from setuptools import setup |
130 | 56 | ... | 56 | ... |
131 | 57 | ... setup( | 57 | ... setup( |
132 | 58 | ... name = "sample", | 58 | ... name = "sample", |
133 | 59 | ... entry_points = {'zc.buildout': ['default = sample:Sample']}, | 59 | ... entry_points = {'zc.buildout': ['default = sample:Sample']}, |
134 | @@ -95,12 +95,13 @@ | |||
135 | 95 | computed by the egg recipe by looking at .installed.cfg: | 95 | computed by the egg recipe by looking at .installed.cfg: |
136 | 96 | 96 | ||
137 | 97 | >>> cat(sample_buildout, '.installed.cfg') | 97 | >>> cat(sample_buildout, '.installed.cfg') |
138 | 98 | ... # doctest: +NORMALIZE_WHITESPACE | ||
139 | 98 | [buildout] | 99 | [buildout] |
140 | 99 | installed_develop_eggs = /sample-buildout/develop-eggs/sample.egg-link | 100 | installed_develop_eggs = /sample-buildout/develop-eggs/sample.egg-link |
141 | 100 | parts = sample-part | 101 | parts = sample-part |
142 | 101 | <BLANKLINE> | 102 | <BLANKLINE> |
143 | 102 | [sample-part] | 103 | [sample-part] |
145 | 103 | __buildout_installed__ = | 104 | __buildout_installed__ = |
146 | 104 | __buildout_signature__ = sample-6aWMvV2EJ9Ijq+bR8ugArQ== | 105 | __buildout_signature__ = sample-6aWMvV2EJ9Ijq+bR8ugArQ== |
147 | 105 | zc.recipe.egg-cAsnudgkduAa/Fd+WJIM6Q== | 106 | zc.recipe.egg-cAsnudgkduAa/Fd+WJIM6Q== |
148 | 106 | setuptools-0.6-py2.4.egg | 107 | setuptools-0.6-py2.4.egg |
149 | 107 | 108 | ||
150 | === modified file 'zc.recipe.egg_/src/zc/recipe/egg/custom.txt' | |||
151 | --- zc.recipe.egg_/src/zc/recipe/egg/custom.txt 2008-08-27 06:48:40 +0000 | |||
152 | +++ zc.recipe.egg_/src/zc/recipe/egg/custom.txt 2010-02-17 21:22:11 +0000 | |||
153 | @@ -50,7 +50,7 @@ | |||
154 | 50 | swig | 50 | swig |
155 | 51 | The path to the swig executable | 51 | The path to the swig executable |
156 | 52 | 52 | ||
158 | 53 | swig-cpp | 53 | swig-cpp |
159 | 54 | Make SWIG create C++ files (default is C) | 54 | Make SWIG create C++ files (default is C) |
160 | 55 | 55 | ||
161 | 56 | swig-opts | 56 | swig-opts |
162 | @@ -73,14 +73,14 @@ | |||
163 | 73 | alternate index with this option. If you use the links option and | 73 | alternate index with this option. If you use the links option and |
164 | 74 | if the links point to the needed distributions, then the index can | 74 | if the links point to the needed distributions, then the index can |
165 | 75 | be anything and will be largely ignored. In the examples, here, | 75 | be anything and will be largely ignored. In the examples, here, |
167 | 76 | we'll just point to an empty directory on our link server. This | 76 | we'll just point to an empty directory on our link server. This |
168 | 77 | will make our examples run a little bit faster. | 77 | will make our examples run a little bit faster. |
169 | 78 | 78 | ||
170 | 79 | python | 79 | python |
171 | 80 | The name of a section to get the Python executable from. | 80 | The name of a section to get the Python executable from. |
172 | 81 | If not specified, then the buildout python option is used. The | 81 | If not specified, then the buildout python option is used. The |
173 | 82 | Python executable is found in the executable option of the named | 82 | Python executable is found in the executable option of the named |
175 | 83 | section. | 83 | section. |
176 | 84 | 84 | ||
177 | 85 | environment | 85 | environment |
178 | 86 | The name of a section with additional environment variables. The | 86 | The name of a section with additional environment variables. The |
179 | @@ -188,7 +188,7 @@ | |||
180 | 188 | ... | 188 | ... |
181 | 189 | ... [demo] | 189 | ... [demo] |
182 | 190 | ... recipe = zc.recipe.egg | 190 | ... recipe = zc.recipe.egg |
184 | 191 | ... eggs = demo | 191 | ... eggs = demo |
185 | 192 | ... extdemo | 192 | ... extdemo |
186 | 193 | ... entry-points = demo=demo:main | 193 | ... entry-points = demo=demo:main |
187 | 194 | ... """ % dict(server=link_server)) | 194 | ... """ % dict(server=link_server)) |
188 | @@ -270,7 +270,7 @@ | |||
189 | 270 | ... | 270 | ... |
190 | 271 | ... [demo] | 271 | ... [demo] |
191 | 272 | ... recipe = zc.recipe.egg | 272 | ... recipe = zc.recipe.egg |
193 | 273 | ... eggs = demo | 273 | ... eggs = demo |
194 | 274 | ... extdemo ==1.4 | 274 | ... extdemo ==1.4 |
195 | 275 | ... entry-points = demo=demo:main | 275 | ... entry-points = demo=demo:main |
196 | 276 | ... """ % dict(server=link_server)) | 276 | ... """ % dict(server=link_server)) |
197 | @@ -440,7 +440,7 @@ | |||
198 | 440 | Uninstalling extdemo. | 440 | Uninstalling extdemo. |
199 | 441 | Installing extdemo. | 441 | Installing extdemo. |
200 | 442 | zip_safe flag not set; analyzing archive contents... | 442 | zip_safe flag not set; analyzing archive contents... |
202 | 443 | 443 | ||
203 | 444 | >>> rmdir(sample_buildout, 'recipes') | 444 | >>> rmdir(sample_buildout, 'recipes') |
204 | 445 | 445 | ||
205 | 446 | 446 | ||
206 | @@ -496,7 +496,7 @@ | |||
207 | 496 | swig | 496 | swig |
208 | 497 | The path to the swig executable | 497 | The path to the swig executable |
209 | 498 | 498 | ||
211 | 499 | swig-cpp | 499 | swig-cpp |
212 | 500 | Make SWIG create C++ files (default is C) | 500 | Make SWIG create C++ files (default is C) |
213 | 501 | 501 | ||
214 | 502 | swig-opts | 502 | swig-opts |
215 | @@ -506,7 +506,7 @@ | |||
216 | 506 | The name of a section to get the Python executable from. | 506 | The name of a section to get the Python executable from. |
217 | 507 | If not specified, then the buildout python option is used. The | 507 | If not specified, then the buildout python option is used. The |
218 | 508 | Python executable is found in the executable option of the named | 508 | Python executable is found in the executable option of the named |
220 | 509 | section. | 509 | section. |
221 | 510 | 510 | ||
222 | 511 | To illustrate this, we'll use a directory containing the extdemo | 511 | To illustrate this, we'll use a directory containing the extdemo |
223 | 512 | example from the earlier section: | 512 | example from the earlier section: |
224 | @@ -532,7 +532,7 @@ | |||
225 | 532 | ... | 532 | ... |
226 | 533 | ... [demo] | 533 | ... [demo] |
227 | 534 | ... recipe = zc.recipe.egg | 534 | ... recipe = zc.recipe.egg |
229 | 535 | ... eggs = demo | 535 | ... eggs = demo |
230 | 536 | ... extdemo | 536 | ... extdemo |
231 | 537 | ... entry-points = demo=demo:main | 537 | ... entry-points = demo=demo:main |
232 | 538 | ... """ % dict(extdemo=extdemo)) | 538 | ... """ % dict(extdemo=extdemo)) |
233 | 539 | 539 | ||
234 | === modified file 'zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt' | |||
235 | --- zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt 2009-08-28 20:55:09 +0000 | |||
236 | +++ zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt 2010-02-17 21:22:11 +0000 | |||
237 | @@ -24,8 +24,8 @@ | |||
238 | 24 | <a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br> | 24 | <a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br> |
239 | 25 | </body></html> | 25 | </body></html> |
240 | 26 | 26 | ||
243 | 27 | We have a sample buildout. Let's update it's configuration file to | 27 | We have a sample buildout. Let's update its configuration file to |
244 | 28 | install the demo package using Python 2.4. | 28 | install the demo package using Python 2.4. |
245 | 29 | 29 | ||
246 | 30 | >>> write(sample_buildout, 'buildout.cfg', | 30 | >>> write(sample_buildout, 'buildout.cfg', |
247 | 31 | ... """ | 31 | ... """ |
248 | @@ -69,7 +69,7 @@ | |||
249 | 69 | d setuptools-0.6-py2.4.egg | 69 | d setuptools-0.6-py2.4.egg |
250 | 70 | d setuptools-0.6-py2.5.egg | 70 | d setuptools-0.6-py2.5.egg |
251 | 71 | - zc.buildout-1.0-py2.5.egg | 71 | - zc.buildout-1.0-py2.5.egg |
253 | 72 | 72 | ||
254 | 73 | And the generated scripts invoke Python 2.4: | 73 | And the generated scripts invoke Python 2.4: |
255 | 74 | 74 | ||
256 | 75 | >>> import sys | 75 | >>> import sys |
257 | 76 | 76 | ||
258 | === modified file 'zc.recipe.egg_/src/zc/recipe/egg/tests.py' | |||
259 | --- zc.recipe.egg_/src/zc/recipe/egg/tests.py 2009-06-22 14:10:12 +0000 | |||
260 | +++ zc.recipe.egg_/src/zc/recipe/egg/tests.py 2010-02-17 21:22:11 +0000 | |||
261 | @@ -36,7 +36,7 @@ | |||
262 | 36 | def setUpSelecting(test): | 36 | def setUpSelecting(test): |
263 | 37 | zc.buildout.testselectingpython.setup(test) | 37 | zc.buildout.testselectingpython.setup(test) |
264 | 38 | zc.buildout.testing.install_develop('zc.recipe.egg', test) | 38 | zc.buildout.testing.install_develop('zc.recipe.egg', test) |
266 | 39 | 39 | ||
267 | 40 | def test_suite(): | 40 | def test_suite(): |
268 | 41 | suite = unittest.TestSuite(( | 41 | suite = unittest.TestSuite(( |
269 | 42 | doctest.DocFileSuite( | 42 | doctest.DocFileSuite( |
270 | @@ -67,7 +67,7 @@ | |||
271 | 67 | 'setuptools-\S+\s+' | 67 | 'setuptools-\S+\s+' |
272 | 68 | 'zc.buildout-\S+\s*' | 68 | 'zc.buildout-\S+\s*' |
273 | 69 | ), | 69 | ), |
275 | 70 | '__buildout_signature__ = sample- zc.recipe.egg-'), | 70 | '__buildout_signature__ = sample- zc.recipe.egg-\n'), |
276 | 71 | (re.compile('executable = [\S ]+python\S*', re.I), | 71 | (re.compile('executable = [\S ]+python\S*', re.I), |
277 | 72 | 'executable = python'), | 72 | 'executable = python'), |
278 | 73 | (re.compile('find-links = http://localhost:\d+/'), | 73 | (re.compile('find-links = http://localhost:\d+/'), |
279 | @@ -89,7 +89,7 @@ | |||
280 | 89 | (re.compile('extdemo[.]pyd'), 'extdemo.so') | 89 | (re.compile('extdemo[.]pyd'), 'extdemo.so') |
281 | 90 | ]), | 90 | ]), |
282 | 91 | ), | 91 | ), |
284 | 92 | 92 | ||
285 | 93 | )) | 93 | )) |
286 | 94 | 94 | ||
287 | 95 | if sys.version_info[:2] == (2, 5): | 95 | if sys.version_info[:2] == (2, 5): |
288 | @@ -115,7 +115,7 @@ | |||
289 | 115 | ]), | 115 | ]), |
290 | 116 | ), | 116 | ), |
291 | 117 | ) | 117 | ) |
293 | 118 | 118 | ||
294 | 119 | return suite | 119 | return suite |
295 | 120 | 120 | ||
296 | 121 | if __name__ == '__main__': | 121 | if __name__ == '__main__': |
This branch does three simple things.
- It fixes a few typos.
- It removes a bit of trailing whitespace.
- It makes a test result a bit more robust on Windows.
These changes are extracted out of the rest of the branches for python-support to try and simplify the review.