python-emscripten  Check-in [3166b2f00b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Doc fixes / clean-ups
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:3166b2f00b6c6f22ad7a37a8089ab9b7f2bf2bb7c096e9187de1b8eaf8e27641
User & Date: Beuc 2020-07-27 16:49:56
Context
2020-07-27
16:53
py2: 2.7.18 support check-in: f4bef9c8ce user: Beuc tags: trunk
16:49
Doc fixes / clean-ups check-in: 3166b2f00b user: Beuc tags: trunk
16:48
2.7.10: disable C-patched static submodule support check-in: 0a34aed2ad user: Beuc tags: trunk
Changes

Changes to 2.7.10/python.sh.

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

102
103
104
105
106
107
108
                emconfigure ../configure \
                --host=asmjs-unknown-emscripten --build=$(../config.guess) \
                --prefix='' \
                --without-threads --without-pymalloc --without-signal-module --disable-ipv6 \
                --disable-shared
        fi
        # Fix bad detection
        sed -i -e 's,^#define HAVE_GCC_ASM_FOR_X87.*,/* & */,' pyconfig.h

        # pgen native setup
        # note: need to build 'pgen' once before overwriting it with the native one
        # note: PGEN=../native/Parser/pgen doesn't work, make overwrites it
        emmake make Parser/pgen
        \cp --preserve=mode ../native/Parser/pgen Parser/

        # Modules/Setup.local
        echo '*static*' > Modules/Setup.local
        cat $SETUPLOCAL >> Modules/Setup.local
        emmake make Makefile
        # drop -I/-L/-lz, we USE_ZLIB=1 (keep it in SETUPLOCAL for mock)
        sed -i -e 's/^\(zlib zlibmodule.c\).*/\1/' Modules/Setup.local

    
        (
            export PATH=$BUILD/Python-$VERSION/native:$PATH
            emmake make -j$(nproc)
            # setup.py install_lib doesn't respect DESTDIR
            echo -e 'sharedinstall:\n\ttrue' >> Makefile
            # decrease .pyo size by dropping docstrings







|










<


>







81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

99
100
101
102
103
104
105
106
107
108
                emconfigure ../configure \
                --host=asmjs-unknown-emscripten --build=$(../config.guess) \
                --prefix='' \
                --without-threads --without-pymalloc --without-signal-module --disable-ipv6 \
                --disable-shared
        fi
        # Fix bad detection
        sed -i.bak -e 's,^#define HAVE_GCC_ASM_FOR_X87.*,/* & */,' pyconfig.h

        # pgen native setup
        # note: need to build 'pgen' once before overwriting it with the native one
        # note: PGEN=../native/Parser/pgen doesn't work, make overwrites it
        emmake make Parser/pgen
        \cp --preserve=mode ../native/Parser/pgen Parser/

        # Modules/Setup.local
        echo '*static*' > Modules/Setup.local
        cat $SETUPLOCAL >> Modules/Setup.local

        # drop -I/-L/-lz, we USE_ZLIB=1 (keep it in SETUPLOCAL for mock)
        sed -i -e 's/^\(zlib zlibmodule.c\).*/\1/' Modules/Setup.local
        emmake make Makefile
    
        (
            export PATH=$BUILD/Python-$VERSION/native:$PATH
            emmake make -j$(nproc)
            # setup.py install_lib doesn't respect DESTDIR
            echo -e 'sharedinstall:\n\ttrue' >> Makefile
            # decrease .pyo size by dropping docstrings

Changes to 3.8/python.sh.

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
    rm -rf Python-$VERSION/
    tar xf $CACHEROOT/Python-$VERSION.tar.xz
    cd Python-$VERSION/
    quilt push -a
}

# use cases:
# - python/pgen/.pyo for emscripten() below
# - common basis for crosspython below
hostpython () {
    cd $BUILD/Python-$VERSION/
    mkdir -p native
    (
        cd native/
        if [ ! -e config.status ]; then







|







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
    rm -rf Python-$VERSION/
    tar xf $CACHEROOT/Python-$VERSION.tar.xz
    cd Python-$VERSION/
    quilt push -a
}

# use cases:
# - python/.pyo for emscripten() below
# - common basis for crosspython below
hostpython () {
    cd $BUILD/Python-$VERSION/
    mkdir -p native
    (
        cd native/
        if [ ! -e config.status ]; then