From 1c13bcede303912c0a5c2fc0e8a83d48aaf08009 Mon Sep 17 00:00:00 2001 From: Hunaid Sohail <76044242+Hunaid2000@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:32:59 +0500 Subject: [PATCH] Issue #388 - Fix python driver build from source (#389) * Fixed a bug where python driver throws error when build from source * Moved required packages to requirements.txt * Update Readme Rearranged instructions and added instructions to install from requirements.txt * Fixed a typo in exceptions.py file Fixed a typo 'SqlExcution' on line 62 in exceptions.py file --- drivers/python/README.md | 18 +++++++++--------- drivers/python/requirements.txt | Bin 0 -> 158 bytes drivers/python/setup.py | 4 +--- 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 drivers/python/requirements.txt diff --git a/drivers/python/README.md b/drivers/python/README.md index 5d97cf970..f9175b7be 100644 --- a/drivers/python/README.md +++ b/drivers/python/README.md @@ -11,10 +11,15 @@ AGType parser and driver support for [Apache AGE](https://age.apache.org/), grap ``` sudo apt-get update sudo apt-get install python3-dev libpq-dev -pip install --no-binary :all: psycopg2 -pip install antlr4-python3-runtime==4.9.2 - -``` +git clone https://github.com/apache/age.git +cd age/drivers/python +``` + +### Install required packages +``` +pip install -r requirements.txt +``` + ### Test ``` python -m unittest -v test_age_py.py @@ -23,18 +28,13 @@ python -m unittest -v test_agtypes.py ### Build from source ``` -git clone https://github.com/apache/age.git -cd age/drivers/python - python setup.py install - ``` ### Install from PyPi ``` pip install apache-age-python - ``` ### For more information about [Apache AGE](https://age.apache.org/) diff --git a/drivers/python/requirements.txt b/drivers/python/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..918763cbfe5163b75d9480c93ffd02331959529e GIT binary patch literal 158 zcmZ9EK?;LF5CrQS@DF}K59%dC9-~1L!K}-=9{hY_CCAXr&^_HfpLb;A;Lb|qK|@I; zg1Ta4mJK8mCB1ABz5KsbaM2B9{X}Os+Q~fq6KK_m{pZiTn7E0Knyb_DZEs$)ndn}{ G;^hRA