Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
diff_in_building_cpython_dockerfile
建立於
4 年前
差異永不過期
清除
匯出
分享
解釋
0 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
81 行
全部複製
7 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
84 行
全部複製
FROM build-base:dev
FROM build-base:dev
# clone cpython 3.11
# clone cpython 3.11
ARG CPYTHON_COMMIT="d81182b8ec3b1593daf241d44757a9fa68fd14cc"
ARG CPYTHON_COMMIT="d81182b8ec3b1593daf241d44757a9fa68fd14cc"
RUN git clone https://github.com/python/cpython.git /opt/cpython && \
RUN git clone https://github.com/python/cpython.git /opt/cpython && \
cd /opt/cpython && git checkout ${CPYTHON_COMMIT}
cd /opt/cpython && git checkout ${CPYTHON_COMMIT}
# patch i386 python
# patch i386 python
RUN mkdir -p /opt/cpython/i386
RUN mkdir -p /opt/cpython/i386
COPY ./patches/cpython.i386.patch /opt/cpython/cpython.i386.patch
COPY ./patches/cpython.i386.patch /opt/cpython/cpython.i386.patch
RUN cd /opt/cpython && \
RUN cd /opt/cpython && \
git reset --hard && \
git reset --hard && \
git apply ./cpython.i386.patch
git apply ./cpython.i386.patch
# configure
# configure
RUN mkdir -p /opt/cpython/i386 && cd /opt/cpython/i386 && \
RUN mkdir -p /opt/cpython/i386 && cd /opt/cpython/i386 && \
../configure CFLAGS="-m32 -march=i386 -static" \
../configure CFLAGS="-m32 -march=i386 -static" \
LDFLAGS="-m32 -march=i386" \
LDFLAGS="-m32 -march=i386" \
複製
已複製
複製
已複製
--prefix=$(pwd)
--prefix=$(pwd)
\
--with-pydebug
# build/install i386 python interpreter w/ pip
# build/install i386 python interpreter w/ pip
RUN cd /opt/cpython/i386 && make -j install
RUN cd /opt/cpython/i386 && make -j install
RUN /opt/cpython/i386/bin/python3.11 -m pip install --upgrade pip
RUN /opt/cpython/i386/bin/python3.11 -m pip install --upgrade pip
# build/install libffi-emscripten
# build/install libffi-emscripten
RUN git clone https://github.com/hoodmane/libffi-emscripten /opt/libffi-emscripten && \
RUN git clone https://github.com/hoodmane/libffi-emscripten /opt/libffi-emscripten && \
cd /opt/libffi-emscripten && git checkout 1fd79801595a43e26b65b59030a9040ba124ee24
cd /opt/libffi-emscripten && git checkout 1fd79801595a43e26b65b59030a9040ba124ee24
RUN cd /opt/libffi-emscripten && ./build.sh
RUN cd /opt/libffi-emscripten && ./build.sh
RUN mkdir -p /build/libffi-emscripten && cp -r /opt/libffi-emscripten/target/* /build/
RUN mkdir -p /build/libffi-emscripten && cp -r /opt/libffi-emscripten/target/* /build/
# build flags for the wasm python interpreter (and for builds in child containers)
# build flags for the wasm python interpreter (and for builds in child containers)
ENV CFLAGS="-pthread -O3 -static"
ENV CFLAGS="-pthread -O3 -static"
ENV LDFLAGS="-pthread \
ENV LDFLAGS="-pthread \
-s USE_ZLIB \
-s USE_ZLIB \
-s WASM_BIGINT \
-s WASM_BIGINT \
-s USE_PTHREADS \
-s USE_PTHREADS \
-s ALLOW_MEMORY_GROWTH \
-s ALLOW_MEMORY_GROWTH \
-s LLD_REPORT_UNDEFINED \
-s LLD_REPORT_UNDEFINED \
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-s EXIT_RUNTIME \
-s EXIT_RUNTIME \
-lnodefs.js -s NODERAWFS -s FORCE_FILESYSTEM"
-lnodefs.js -s NODERAWFS -s FORCE_FILESYSTEM"
ENV LINKFORSHARED="${LDFLAGS}"
ENV LINKFORSHARED="${LDFLAGS}"
# patch cpython for the wasm build
# patch cpython for the wasm build
RUN mkdir -p /opt/cpython/wasm
RUN mkdir -p /opt/cpython/wasm
COPY ./patches/cpython.wasm.patch /opt/cpython/cpython.wasm.patch
COPY ./patches/cpython.wasm.patch /opt/cpython/cpython.wasm.patch
RUN cd /opt/cpython && \
RUN cd /opt/cpython && \
git reset --hard && \
git reset --hard && \
git apply ./cpython.wasm.patch
git apply ./cpython.wasm.patch
# configure
# configure
RUN cd /opt/cpython/wasm && \
RUN cd /opt/cpython/wasm && \
emconfigure ../configure \
emconfigure ../configure \
CONFIG_SITE=/opt/cpython/wasm/config.site \
CONFIG_SITE=/opt/cpython/wasm/config.site \
SHLIB_SUFFIX=".bc" \
SHLIB_SUFFIX=".bc" \
--with-static-libpython \
--with-static-libpython \
--disable-shared \
--disable-shared \
--without-ensurepip \
--without-ensurepip \
--without-pymalloc \
--without-pymalloc \
複製
已複製
複製
已複製
--prefix=/opt/cpython/wasm
--prefix=/opt/cpython/wasm
\
--with-pydebug
# build/install the wasm interpreter (w/ NodeFS support)
# build/install the wasm interpreter (w/ NodeFS support)
RUN cd /opt/cpython/wasm && make -j install && \
RUN cd /opt/cpython/wasm && make -j install && \
cp /opt/cpython/wasm/python.wasm /opt/cpython/wasm/bin/ && \
cp /opt/cpython/wasm/python.wasm /opt/cpython/wasm/bin/ && \
cp /opt/cpython/wasm/python.worker.js /opt/cpython/wasm/bin/
cp /opt/cpython/wasm/python.worker.js /opt/cpython/wasm/bin/
# configure the i386 python interpreter to ues the wasm python configuration
# configure the i386 python interpreter to ues the wasm python configuration
# - used for eg. freezing wasm python modules
# - used for eg. freezing wasm python modules
RUN cp /opt/cpython/i386/bin/python3.11 /opt/cpython/wasm/bin/python3.11-i386
RUN cp /opt/cpython/i386/bin/python3.11 /opt/cpython/wasm/bin/python3.11-i386
複製
已複製
複製
已複製
RUN cp /opt/cpython/wasm/lib/python3.11/_sysconfigdata_
_linux_.py /opt/cpython/wasm/lib/python3.11/_sysconfigdata_
_linux_x86_64-linux-gnu.py
RUN cp /opt/cpython/wasm/lib/python3.11/_sysconfigdata_
d
_linux_.py /opt/cpython/wasm/lib/python3.11/_sysconfigdata_
d
_linux_x86_64-linux-gnu.py
RUN cp -r /opt/cpython/i386/lib/python3.11/lib-dynload/. /opt/cpython/wasm/lib/python3.11/lib-dynload/
RUN cp -r /opt/cpython/i386/lib/python3.11/lib-dynload/. /opt/cpython/wasm/lib/python3.11/lib-dynload/
# install pip for i386 python
# install pip for i386 python
# - i386 python wheel
# - i386 python wheel
# - used to cross-compile wasm python modules w/ source from pip
# - used to cross-compile wasm python modules w/ source from pip
RUN /opt/cpython/wasm/bin/python3.11-i386 -m ensurepip
RUN /opt/cpython/wasm/bin/python3.11-i386 -m ensurepip
RUN /opt/cpython/wasm/bin/python3.11-i386 -m pip install --upgrade pip
RUN /opt/cpython/wasm/bin/python3.11-i386 -m pip install --upgrade pip
# copy source and build output w/o the .git directory
# copy source and build output w/o the .git directory
RUN rm -rf /opt/cpython/.git && \
RUN rm -rf /opt/cpython/.git && \
cp -r /opt/cpython /build/cpython
cp -r /opt/cpython /build/cpython
複製
已複製
複製
已複製
已保存差異
原始文本
開啟檔案
FROM build-base:dev # clone cpython 3.11 ARG CPYTHON_COMMIT="d81182b8ec3b1593daf241d44757a9fa68fd14cc" RUN git clone https://github.com/python/cpython.git /opt/cpython && \ cd /opt/cpython && git checkout ${CPYTHON_COMMIT} # patch i386 python RUN mkdir -p /opt/cpython/i386 COPY ./patches/cpython.i386.patch /opt/cpython/cpython.i386.patch RUN cd /opt/cpython && \ git reset --hard && \ git apply ./cpython.i386.patch # configure RUN mkdir -p /opt/cpython/i386 && cd /opt/cpython/i386 && \ ../configure CFLAGS="-m32 -march=i386 -static" \ LDFLAGS="-m32 -march=i386" \ --prefix=$(pwd) # build/install i386 python interpreter w/ pip RUN cd /opt/cpython/i386 && make -j install RUN /opt/cpython/i386/bin/python3.11 -m pip install --upgrade pip # build/install libffi-emscripten RUN git clone https://github.com/hoodmane/libffi-emscripten /opt/libffi-emscripten && \ cd /opt/libffi-emscripten && git checkout 1fd79801595a43e26b65b59030a9040ba124ee24 RUN cd /opt/libffi-emscripten && ./build.sh RUN mkdir -p /build/libffi-emscripten && cp -r /opt/libffi-emscripten/target/* /build/ # build flags for the wasm python interpreter (and for builds in child containers) ENV CFLAGS="-pthread -O3 -static" ENV LDFLAGS="-pthread \ -s USE_ZLIB \ -s WASM_BIGINT \ -s USE_PTHREADS \ -s ALLOW_MEMORY_GROWTH \ -s LLD_REPORT_UNDEFINED \ -s ERROR_ON_UNDEFINED_SYMBOLS=0 \ -s EXIT_RUNTIME \ -lnodefs.js -s NODERAWFS -s FORCE_FILESYSTEM" ENV LINKFORSHARED="${LDFLAGS}" # patch cpython for the wasm build RUN mkdir -p /opt/cpython/wasm COPY ./patches/cpython.wasm.patch /opt/cpython/cpython.wasm.patch RUN cd /opt/cpython && \ git reset --hard && \ git apply ./cpython.wasm.patch # configure RUN cd /opt/cpython/wasm && \ emconfigure ../configure \ CONFIG_SITE=/opt/cpython/wasm/config.site \ SHLIB_SUFFIX=".bc" \ --with-static-libpython \ --disable-shared \ --without-ensurepip \ --without-pymalloc \ --prefix=/opt/cpython/wasm # build/install the wasm interpreter (w/ NodeFS support) RUN cd /opt/cpython/wasm && make -j install && \ cp /opt/cpython/wasm/python.wasm /opt/cpython/wasm/bin/ && \ cp /opt/cpython/wasm/python.worker.js /opt/cpython/wasm/bin/ # configure the i386 python interpreter to ues the wasm python configuration # - used for eg. freezing wasm python modules RUN cp /opt/cpython/i386/bin/python3.11 /opt/cpython/wasm/bin/python3.11-i386 RUN cp /opt/cpython/wasm/lib/python3.11/_sysconfigdata__linux_.py /opt/cpython/wasm/lib/python3.11/_sysconfigdata__linux_x86_64-linux-gnu.py RUN cp -r /opt/cpython/i386/lib/python3.11/lib-dynload/. /opt/cpython/wasm/lib/python3.11/lib-dynload/ # install pip for i386 python # - i386 python wheel # - used to cross-compile wasm python modules w/ source from pip RUN /opt/cpython/wasm/bin/python3.11-i386 -m ensurepip RUN /opt/cpython/wasm/bin/python3.11-i386 -m pip install --upgrade pip # copy source and build output w/o the .git directory RUN rm -rf /opt/cpython/.git && \ cp -r /opt/cpython /build/cpython
更改後文本
開啟檔案
FROM build-base:dev # clone cpython 3.11 ARG CPYTHON_COMMIT="d81182b8ec3b1593daf241d44757a9fa68fd14cc" RUN git clone https://github.com/python/cpython.git /opt/cpython && \ cd /opt/cpython && git checkout ${CPYTHON_COMMIT} # patch i386 python RUN mkdir -p /opt/cpython/i386 COPY ./patches/cpython.i386.patch /opt/cpython/cpython.i386.patch RUN cd /opt/cpython && \ git reset --hard && \ git apply ./cpython.i386.patch # configure RUN mkdir -p /opt/cpython/i386 && cd /opt/cpython/i386 && \ ../configure CFLAGS="-m32 -march=i386 -static" \ LDFLAGS="-m32 -march=i386" \ --prefix=$(pwd) \ --with-pydebug # build/install i386 python interpreter w/ pip RUN cd /opt/cpython/i386 && make -j install RUN /opt/cpython/i386/bin/python3.11 -m pip install --upgrade pip # build/install libffi-emscripten RUN git clone https://github.com/hoodmane/libffi-emscripten /opt/libffi-emscripten && \ cd /opt/libffi-emscripten && git checkout 1fd79801595a43e26b65b59030a9040ba124ee24 RUN cd /opt/libffi-emscripten && ./build.sh RUN mkdir -p /build/libffi-emscripten && cp -r /opt/libffi-emscripten/target/* /build/ # build flags for the wasm python interpreter (and for builds in child containers) ENV CFLAGS="-pthread -O3 -static" ENV LDFLAGS="-pthread \ -s USE_ZLIB \ -s WASM_BIGINT \ -s USE_PTHREADS \ -s ALLOW_MEMORY_GROWTH \ -s LLD_REPORT_UNDEFINED \ -s ERROR_ON_UNDEFINED_SYMBOLS=0 \ -s EXIT_RUNTIME \ -lnodefs.js -s NODERAWFS -s FORCE_FILESYSTEM" ENV LINKFORSHARED="${LDFLAGS}" # patch cpython for the wasm build RUN mkdir -p /opt/cpython/wasm COPY ./patches/cpython.wasm.patch /opt/cpython/cpython.wasm.patch RUN cd /opt/cpython && \ git reset --hard && \ git apply ./cpython.wasm.patch # configure RUN cd /opt/cpython/wasm && \ emconfigure ../configure \ CONFIG_SITE=/opt/cpython/wasm/config.site \ SHLIB_SUFFIX=".bc" \ --with-static-libpython \ --disable-shared \ --without-ensurepip \ --without-pymalloc \ --prefix=/opt/cpython/wasm\ --with-pydebug # build/install the wasm interpreter (w/ NodeFS support) RUN cd /opt/cpython/wasm && make -j install && \ cp /opt/cpython/wasm/python.wasm /opt/cpython/wasm/bin/ && \ cp /opt/cpython/wasm/python.worker.js /opt/cpython/wasm/bin/ # configure the i386 python interpreter to ues the wasm python configuration # - used for eg. freezing wasm python modules RUN cp /opt/cpython/i386/bin/python3.11 /opt/cpython/wasm/bin/python3.11-i386 RUN cp /opt/cpython/wasm/lib/python3.11/_sysconfigdata_d_linux_.py /opt/cpython/wasm/lib/python3.11/_sysconfigdata_d_linux_x86_64-linux-gnu.py RUN cp -r /opt/cpython/i386/lib/python3.11/lib-dynload/. /opt/cpython/wasm/lib/python3.11/lib-dynload/ # install pip for i386 python # - i386 python wheel # - used to cross-compile wasm python modules w/ source from pip RUN /opt/cpython/wasm/bin/python3.11-i386 -m ensurepip RUN /opt/cpython/wasm/bin/python3.11-i386 -m pip install --upgrade pip # copy source and build output w/o the .git directory RUN rm -rf /opt/cpython/.git && \ cp -r /opt/cpython /build/cpython
尋找差異