-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix quickstart guide for bigchaindb_driver #316
Conversation
Fixes #315 |
Codecov Report
@@ Coverage Diff @@
## master #316 +/- ##
=======================================
Coverage 99.15% 99.15%
=======================================
Files 9 9
Lines 236 236
=======================================
Hits 234 234
Misses 2 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why libffi-dev
and libssl-dev
are enough for the Python driver, because it depends on the bigchaindb package (BigchainDB Server), which depends on more OS-level packages than those two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few minor copy-editing comments.
docs/quickstart.rst
Outdated
|
||
.. code-block:: bash | ||
|
||
sudo dnf install openssl-devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
docs/quickstart.rst
Outdated
.. code-block:: bash | ||
|
||
sudo dnf install openssl-devel | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below, Python 3.5+ now becomes "Dependency 3". The following ones have to be renumbered as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
docs/quickstart.rst
Outdated
|
||
OR | ||
|
||
$ sudo pip3 install --upgrade setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this one use sudo but the one above doesn't? Same comment for the next subsection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it didn't work for me without the sudo
and I was not using the virtualenv
or conda
, and running this on base VM. I can change that to pip3 install --upgrade setuptools
as well to keep it consistent, and if the user encounters a permissions issue they can run it with sudo
which is pretty straight forward. Same for the next subsection, because with virtualenv, I don't need sudo
permissions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay maybe just remove all the sudo
Don't worry about the automatic codecov test results in documentation-only pull requests. Clearly it is wrong. |
@ttmc because the driver + apt pull the dependencies recursively. |
005f273
to
f332da1
Compare
Okay, so when apt installs But why, when we install the In short, A depends on B, but A has fewer dependencies than B? |
- Fixes quickstart for a fresh Ubuntu/RHEL setup, and installs all the relevant dependencies.
f332da1
to
3994a44
Compare
We only need |
So is there a way to have |
@kremalicious No, pip cannot. It can only install python modules as per the |
and installs all the relevant dependencies.