Skip to content

Instantly share code, notes, and snippets.

@fake-name
Last active September 6, 2021 09:53
Show Gist options
  • Save fake-name/8961e89bdd2e2174388fb5ae9eaf9e97 to your computer and use it in GitHub Desktop.
Save fake-name/8961e89bdd2e2174388fb5ae9eaf9e97 to your computer and use it in GitHub Desktop.

I'm trying to build/run calibre from git. It's super annoying to do so, 98% because doing so is completely undocumented, and the way releases are built is obsured by many, many layers of container idiocy.

I don't care if you relaly like docker/qemu, write a damn simple shell script so that people who don't use $CONTAINER_AGENT_OF_CHOICE can actually get somewhere.

Apt dependencies:

sudo apt install libfontconfig1-dev
sudo apt install qtbase5-private-dev
sudo apt install libunrar-dev
sudo apt install libchm-dev
sudo apt install libxml2-dev
sudo apt install libhyphen-dev
sudo apt install libicu-dev
sudo apt install libhunspell-dev
sudo apt install python3-dev
sudo apt install build-essential
sudo apt install libpodofo-dev
sudo apt install libsqlite3-dev
sudo apt install libstemmer-dev
sudo apt install libfreetype-dev
sudo apt install libusb-1.0-0-dev
sudo apt install libmtp-dev
sudo apt install qt5-qmake
sudo apt install qt5dxcb-plugin

Anyways, here's a reasonable requirements:

setuptools==49.6.0 
six==1.15.0 
unrardll==0.1.3 
lxml==4.5.2 
pychm==0.8.6 
html5-parser==0.4.9 
css-parser==1.0.6 
python-dateutil==2.8.1 
jeepney==0.6.0 
dnspython==2.0.0 
mechanize==0.4.5 
feedparser==5.2.1 
Markdown==3.2.2 
html2text==2020.1.16 
soupsieve==2.0.1 
beautifulsoup4==4.9.1 
regex==2020.07.14 
chardet==3.0.4 
cchardet==2.1.7 
msgpack==1.0.0 
Pygments==2.6.1 
pycryptodome==3.9.8 
webencodings==0.5.1 
html5lib==1.1 
Pillow==8.3.1 
netifaces==0.10.9 
psutil==5.7.2 
ifaddr==0.1.7 
texttable==1.6.3 
py7zr==0.11.1 
zeroconf==0.31.0 
toml==0.10.1 
pyparsing==2.4.7 
packaging==20.4 
sip==5.5.0 
PyQt-builder==1.6.0 
PyQt5_sip==12.8.1 
PyQt5==5.15.2 
PyQtWebEngine==5.15.2

apsw is needed, but is a special snowflake and too good for pypi, so install it as:

download/3.35.4-r1/apsw-3.35.4-r1.zip \
--global-option=fetch --global-option=--version --global-option=3.35.4 --global-option=--all \
--global-option=build --global-option=--enable-all-extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment