Permalink
Please sign in to comment.
Browse files
Fixes to 'make _bin/opy.ovm'
- tokenize.py uses Python 3 print_function. Needed because OPy does 'import inspect' which does 'import tokenize'. Usually we do 'from .pgen2 import tokenize'. - c_module_srcs.py: can now import hashlib. OPy uses this for 'dis-md5', but Oil doesn't. - atexit.py: move __future__ import so docstring isn't broken. - starting a script to find stdlib dependencies of Oil and OPy.
- Loading branch information...
Showing
with
48 additions
and 4 deletions.
- +1 −1 Python-2.7.13/Lib/atexit.py
- +3 −2 Python-2.7.13/Lib/tokenize.py
- +1 −1 build/actions.sh
- +11 −0 build/c_module_srcs.py
- +32 −0 test/stdlib.sh
| @@ -0,0 +1,32 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Test stdlib dependencies | ||
| # | ||
| # Usage: | ||
| # ./stdlib.sh <function name> | ||
| set -o nounset | ||
| set -o pipefail | ||
| set -o errexit | ||
| # TODO: | ||
| # - Test under CPython (need in-tree build) | ||
| # - Under OVM? How? | ||
| # - Under byterun | ||
| # - although I won't use all of every module | ||
| # Lib/test/regrtest.py gets ImportError? How are you supposed to run this? | ||
| # - I think the out of tree build is fucking things up? You need an | ||
| # in-tree build? | ||
| oil-deps() { | ||
| grep Python _build/oil/opy-app-deps.txt | ||
| } | ||
| opy-deps() { | ||
| #make _bin/opy.ovm | ||
| grep Python _build/opy/opy-app-deps.txt | ||
| #grep Python _build/opy/app-deps-cpython.txt | ||
| } | ||
| "$@" |
0 comments on commit
ef5f1ae