fabric-testbed / InformationModel

FABRIC Information Model library
MIT License
7 stars 1 forks source link

Update README: virtualenvwrapper and/or venv #144

Closed sajith closed 1 year ago

sajith commented 1 year ago

In README, under the section titled "development environment", we state that virtualenv is recommended. But what we really assume there is that virtualenvwrapper is installed (that is where mkvirtualenv and workon commands come from), not just virtualenv.

Installing and using virtualenvwrapper requires additional steps, and some knowledge of the tool. This is fine. However, Python 3 also ships a built-in venv module which seems to work just fine with FIM. We can use venv like so:

$ git clone git@github.com:fabric-testbed/InformationModel.git
$ cd InformationModel
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip install --upgrade pip setuptools
(venv) $ 

(Older versions of pip and setuptools that gets shipped with Python may not always work; which is why pip install --upgrade pip setuptools is a good idea.)

It would be useful to update the README. We could:

ibaldin commented 1 year ago

Fixed by fb125a3