Mercurial > evolve
comparison tests/test-version-install.t @ 4876:1a47cc2728ff stable
setup: make runnable from other dirs
Currently it fails when run in that way for two reasons:
- the description is loaded from the README file but with a path relative to
the working directory
- module references have the same issue, which is fixed with package_dir.
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Thu, 03 Oct 2019 23:20:47 +0100 |
parents | 164543ac3277 |
children | 77e5c733200a |
comparison
equal
deleted
inserted
replaced
4875:164543ac3277 | 4876:1a47cc2728ff |
---|---|
16 Enabled extensions: | 16 Enabled extensions: |
17 | 17 |
18 evolve external * (glob) | 18 evolve external * (glob) |
19 | 19 |
20 Test install | 20 Test install |
21 BROKEN: can't call setup.py from a different dir | 21 #if py3 |
22 BROKEN: unicode errors opening the README | |
22 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null | 23 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null |
23 Traceback (most recent call last): | 24 Traceback (most recent call last): |
24 File "*/../setup.py", line *, in <module> (glob) | 25 File "*/../setup.py", line *, in <module> (glob) |
25 long_description=open('README').read(), | 26 long_description=open(join(dirname(__file__), 'README')).read(), |
26 IOError: [Errno 2] No such file or directory: 'README' (no-py3 !) | 27 File "*/encodings/ascii.py", line *, in decode (glob) |
27 FileNotFoundError: [Errno 2] No such file or directory: 'README' (py3 !) | 28 return codecs.ascii_decode(input, self.errors)[0] |
29 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 460: ordinal not in range(128) | |
28 [1] | 30 [1] |
31 #else | |
32 TODO: fix warning | |
33 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null | |
34 */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) | |
35 warnings.warn(msg) | |
36 #endif |