Does Rope need to be installed in the Project's environment? #557
-
Context: When using Jedi for completion, it is possible to have Jedi installed in the global environment of my system's Python installation. Then, for each project and respective virtual environment I can configure this globally installed Jedi to only consider completing stuff that makes sense locally, for both the packages installed in the active virtualenv and version of the python executable. So if my global environment has a Python 3.9 and I install Jedi in this environment, and afterwards I create a project for Python 3.10 with just Numpy as a dependency, if I use Jedi in this project, it will give code completions that are relevant for Python 3.10 and Numpy. Question : Does Rope allow for this, or do I have to install Rope my project's environment as a development dependency? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Rope is just a library that can be used by different editor/IDE frontends, so the full answer to this is specific to each editor frontend. By default, Rope needs to be able to find your project's dependencies and it looks for dependencies using the same mechanism that Python uses to lookup importable dependencies, modules installed to rope's own runtime environment will be autodiscovered; installing rope to your project's dev dependencies is the easiest way to get setup. You can also add additional paths by adding it to the |
Beta Was this translation helpful? Give feedback.
Rope is just a library that can be used by different editor/IDE frontends, so the full answer to this is specific to each editor frontend.
By default, Rope needs to be able to find your project's dependencies and it looks for dependencies using the same mechanism that Python uses to lookup importable dependencies, modules installed to rope's own runtime environment will be autodiscovered; installing rope to your project's dev dependencies is the easiest way to get setup. You can also add additional paths by adding it to the
python_path
preference in the rope section of yourpyproject.toml
or dynamically using.ropeproject/config.py
, your editor frontend may or may not have already automat…