Skip to content

Commit

Permalink
Update README with simplified installation procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanov committed Dec 29, 2020
1 parent b183abd commit 2c8ed27
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,8 @@ Python bindings for RocksDB. See http://rocksdb.readthedocs.io for a more compre
Quick install
-------------

Quick install for debian/ubuntu like linux distributions.

.. code-block:: bash
$ apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev
$ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ..
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+:}`pwd`/include/
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}`pwd`/build/
$ export LIBRARY_PATH=${LIBRARY_PATH}${LIBRARY_PATH:+:}`pwd`/build/
$ apt-get install python-dev
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install rocksdb
Expand All @@ -34,9 +18,9 @@ Quick usage guide
.. code-block:: python
>>> import rocksdb
>>> db = rocksdb.DB("test.db", rocksdb.Options(create_if_missing=True))
>>> db = rocksdb.DB('test.db', rocksdb.Options(create_if_missing=True))
>>> db.put(b'a', b'data')
>>> print db.get(b'a')
>>> print(db.get(b'a'))
b'data'
Expand Down

0 comments on commit 2c8ed27

Please sign in to comment.