Skip to content

Instantly share code, notes, and snippets.

@malcolmgreaves
Created April 10, 2024 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malcolmgreaves/95c36b26820d25839a08234e46895327 to your computer and use it in GitHub Desktop.
Save malcolmgreaves/95c36b26820d25839a08234e46895327 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt update
#
# install lmdb
#
apt install -y liblmdb-dev
LMDB_FORCE_SYSTEM=1 LMDB_FORCE_CFFI=1 pip install cffi
git clone https://github.com/jnwatson/py-lmdb.git
cd py-lmdb/
git checkout tags/py-lmdb_1.4.1
LMDB_FORCE_SYSTEM=1 LMDB_FORCE_CFFI=1 python setup.py install sdist bdist_wheel
cd ../
rm -rf py-lmdb/
# test
python -c 'from lmdb import cffi; print(cffi)'
#
# install easy_dict
#
pip install easydict==1.9
# test
python -c 'import easydict; print(easydict)'
#
# install openbabel
#
apt install -y libopenbabel-dev python3-openbabel openbabel libopenbabel7
ln -s /usr/include/openbabel3 /usr/local/include/openbabel3
pip install openbabel==3.1.1.1
# test
python -c 'import openbabel; print(openbabel)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment