Changeset 16300 in niluje


Ignore:
Timestamp:
Aug 13, 2019, 11:22:50 PM (12 days ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Build BeautifulSoup? and all its friends… (Hopefully the lxml build will Just Work…)
Location:
Configs/trunk/Kindle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r16299 r16300  
    317317# For lxml:
    318318#       emerge -a cython
     319#
     320# For BeautifulSoup:
     321#       emerge -a bzr
    319322#
    320323# To fetch everything:
     
    33153318done
    33163319cd ..
     3320## cssselect
     3321rm -rf cssselect
     3322until git clone --depth 1 https://github.com/scrapy/cssselect.git; do
     3323        rm -rf cssselect
     3324        sleep 15
     3325done
     3326cd cssselect
     3327update_title_info
     3328for py_ver in ${PYTHON_VERSIONS} ; do
     3329        if [[ "${py_ver}" == 3.* ]] ; then
     3330                py_home="python3"
     3331        else
     3332                py_home="python"
     3333        fi
     3334
     3335        python${py_ver} setup.py clean --all
     3336        python${py_ver} setup.py install --root=${TC_BUILD_DIR}/${py_home} --prefix=. --install-lib=lib/python${py_ver}/site-packages --no-compile
     3337done
     3338cd ..
     3339## webencodings
     3340rm -rf python-webencodings
     3341until git clone --depth 1 https://github.com/gsnedders/python-webencodings.git; do
     3342        rm -rf python-webencodings
     3343        sleep 15
     3344done
     3345cd python-webencodings
     3346update_title_info
     3347for py_ver in ${PYTHON_VERSIONS} ; do
     3348        if [[ "${py_ver}" == 3.* ]] ; then
     3349                py_home="python3"
     3350        else
     3351                py_home="python"
     3352        fi
     3353
     3354        python${py_ver} setup.py clean --all
     3355        python${py_ver} setup.py install --root=${TC_BUILD_DIR}/${py_home} --prefix=. --install-lib=lib/python${py_ver}/site-packages --no-compile
     3356done
     3357cd ..
     3358## html5lib
     3359rm -rf html5lib-python
     3360until git clone --depth 1 https://github.com/html5lib/html5lib-python.git; do
     3361        rm -rf html5lib-python
     3362        sleep 15
     3363done
     3364cd html5lib-python
     3365update_title_info
     3366for py_ver in ${PYTHON_VERSIONS} ; do
     3367        if [[ "${py_ver}" == 3.* ]] ; then
     3368                py_home="python3"
     3369        else
     3370                py_home="python"
     3371        fi
     3372
     3373        python${py_ver} setup.py clean --all
     3374        python${py_ver} setup.py install --root=${TC_BUILD_DIR}/${py_home} --prefix=. --install-lib=lib/python${py_ver}/site-packages --no-compile
     3375done
     3376cd ..
     3377## lxml
     3378rm -rf lxml
     3379until git clone --depth 1 https://github.com/lxml/lxml.git ; do
     3380        rm -rf lxml
     3381        sleep 15
     3382done
     3383cd lxml
     3384update_title_info
     3385#env CC="${CROSS_TC}-gcc" LDSHARED="${CROSS_TC}-gcc -shared" CFLAGS="${BASE_CFLAGS} -I${TC_BUILD_DIR}/python/include/python2.7" LDFLAGS="${BASE_LDFLAGS} -L${TC_BUILD_DIR}/python/lib -L${TC_BUILD_DIR}/python/usr/lib -L${HOME}/x-tools/${CROSS_TC}/${CROSS_TC}/sysroot/usr/lib -Wl,-rpath=${DEVICE_USERSTORE}/python/lib" python2.7 setup.py install --root=${TC_BUILD_DIR}/python --prefix=. --no-compile
     3386for py_ver in ${PYTHON_VERSIONS} ; do
     3387        if [[ "${py_ver}" == 3.* ]] ; then
     3388                py_home="python3"
     3389        else
     3390                py_home="python"
     3391        fi
     3392
     3393        env CC="${CROSS_TC}-gcc" LDSHARED="${CROSS_TC}-gcc -shared" PYTHONXCPREFIX="${TC_BUILD_DIR}/${py_home}" LDFLAGS="${BASE_LDFLAGS} -L${TC_BUILD_DIR}/${py_home}/lib -L${TC_BUILD_DIR}/${py_home}/usr/lib -L${HOME}/x-tools/${CROSS_TC}/${CROSS_TC}/sysroot/usr/lib -Wl,-rpath=${DEVICE_USERSTORE}/${py_home}/lib" python${py_ver} setup.py clean --all
     3394        env CC="${CROSS_TC}-gcc" LDSHARED="${CROSS_TC}-gcc -shared" PYTHONXCPREFIX="${TC_BUILD_DIR}/${py_home}" LDFLAGS="${BASE_LDFLAGS} -L${TC_BUILD_DIR}/${py_home}/lib -L${TC_BUILD_DIR}/${py_home}/usr/lib -L${HOME}/x-tools/${CROSS_TC}/${CROSS_TC}/sysroot/usr/lib -Wl,-rpath=${DEVICE_USERSTORE}/${py_home}/lib" XML2_CONFIG="${TC_BUILD_DIR}/bin/xml2-config" XSLT_CONFIG="${TC_BUILD_DIR}/bin/xslt-config" python${py_ver} setup.py build -x
     3395        env CC="${CROSS_TC}-gcc" LDSHARED="${CROSS_TC}-gcc -shared" PYTHONXCPREFIX="${TC_BUILD_DIR}/${py_home}" LDFLAGS="${BASE_LDFLAGS} -L${TC_BUILD_DIR}/${py_home}/lib -L${TC_BUILD_DIR}/${py_home}/usr/lib -L${HOME}/x-tools/${CROSS_TC}/${CROSS_TC}/sysroot/usr/lib -Wl,-rpath=${DEVICE_USERSTORE}/${py_home}/lib" XML2_CONFIG="${TC_BUILD_DIR}/bin/xml2-config" XSLT_CONFIG="${TC_BUILD_DIR}/bin/xslt-config" python${py_ver} setup.py install --root=${TC_BUILD_DIR}/${py_home} --prefix=. --install-lib=lib/python${py_ver}/site-packages --no-compile --skip-build
     3396done
     3397cd ..
     3398## BeautifulSoup
     3399rm -rf beautifulsoup
     3400until bzr branch lp:beautifulsoup; do
     3401        rm -rf beautifulsoup
     3402        sleep 15
     3403done
     3404cd beautifulsoup
     3405update_title_info
     3406for py_ver in ${PYTHON_VERSIONS} ; do
     3407        if [[ "${py_ver}" == 3.* ]] ; then
     3408                py_home="python3"
     3409        else
     3410                py_home="python"
     3411        fi
     3412
     3413        python${py_ver} setup.py clean --all
     3414        python${py_ver} setup.py install --root=${TC_BUILD_DIR}/${py_home} --prefix=. --install-lib=lib/python${py_ver}/site-packages --no-compile
     3415done
     3416cd ..
    33173417
    33183418for py_ver in ${PYTHON_CUR_VER} ${PYTHON3_CUR_VER} ; do
  • Configs/trunk/Kindle/Touch_Hacks/Python/CREDITS

    r16298 r16300  
    169169    (https://github.com/vpelletier/python-ioctl-opt)
    170170
     171  cssselect: CSS Selectors for Python, Copyright (c) 2007-2012 Ian Bicking and contributors,
     172    Licensed under the BSD License (https://opensource.org/licenses/BSD-3-Clause).
     173    (https://github.com/scrapy/cssselect)
     174
     175  webencodings: Character encoding for the web, Copyright (c) 2012 by Simon Sapin,
     176    Licensed under the BSD License (https://opensource.org/licenses/BSD-3-Clause).
     177    (https://github.com/gsnedders/python-webencodings)
     178
     179  html5lib: Standards-compliant library for parsing and serializing HTML documents and fragments in Python, Copyright (c) 2006-2013 James Graham and other contributors,
     180    Licensed under the MIT License (https://opensource.org/licenses/MIT).
     181    (https://github.com/html5lib/html5lib-python)
     182
     183  lxml: The lxml XML toolkit for Python, Copyright (C) Infrae,
     184    Licensed under the BSD License (https://opensource.org/licenses/BSD-3-Clause).
     185    (https://lxml.de/)
     186
     187  beautifulsoup: a screen-scraping library, Copyright (C) 2004-2019 Leonard Richardson,
     188    Licensed under the MIT License (https://opensource.org/licenses/MIT).
     189    (https://www.crummy.com/software/BeautifulSoup/)
Note: See TracChangeset for help on using the changeset viewer.