Skip to content

Commit

Permalink
Merge pull request #6839 from drew2a/refactoring/dependencies
Browse files Browse the repository at this point in the history
Update requirements.txt
  • Loading branch information
drew2a authored Apr 4, 2022
2 parents 50e84df + a8a94f0 commit fa83b4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ unsafe-load-any-extension=no
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=libtorrent,PyQt5
extension-pkg-whitelist=PyQt5

# Allow optimization of some AST trees. This will activate a peephole AST
# optimizer, which will apply various small optimizations. For instance, it can
Expand Down
45 changes: 0 additions & 45 deletions doc/development/development_on_osx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,51 +18,6 @@ If you wish to run the Tribler Graphical User Interface, PyQt5 should be availab
qmake --version # test whether qt is installed correctly
Libtorrent
~~~~~~~~~~

You can install libtorrent with Brew using the following command:

.. code-block:: bash
brew install libtorrent-rasterbar
To verify a correct installation, you can execute:

.. code-block:: bash
python3
>>> import libtorrent
**Symbol not found: _kSCCompAnyRegex** error

If you see `Symbol not found: _kSCCompAnyRegex` error, then follow
https://github.com/Homebrew/homebrew-core/pull/43858 for the explanation.

You can build libtorrent by yourself: http://libtorrent.org/python_binding.html
or by using this workaround from PR:

1. Edit brew formula:

.. code-block:: bash
brew edit libtorrent-rasterbar
2. Add on the top of the `install` function `ENV.append` string as described below:

.. code-block:: bash
def install
ENV.append "LDFLAGS", "-framework SystemConfiguration -framework CoreFoundation"
3. Build `libtorrent-rasterbar` from source:

.. code-block:: bash
brew install libtorrent-rasterbar --build-from-source
Other Packages
~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion requirements-core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ yappi==1.3.3
yarl==1.7.2 # keep this dependency higher than 1.6.3. See: https://github.com/aio-libs/yarl/issues/517
Faker==9.8.2
sentry-sdk==1.5.0
pyipv8==2.8.0
pyipv8==2.8.0
libtorrent==1.2.15

0 comments on commit fa83b4d

Please sign in to comment.