Skip to content

Commit c6013bc

Browse files
author
traff
committed
Update README.md
Example for pip
1 parent a460b40 commit c6013bc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ pref - path prefix where python should be installed (default /usr/local)
2020

2121
from_source - if true then install from sources (downloaded automaticly), false - install from ubuntu package
2222

23+
####Example
24+
25+
If you want to compile python 2.7.3 from sources and install it to /opt/local
26+
27+
python::install {"2.7.3":
28+
pref => "/opt/local",
29+
}
30+
2331
###python::configure
2432

2533
Configures python to be ready for creating virtual environments and installing new packages, namely downloads and installs
@@ -67,10 +75,10 @@ libraries - space separated list of libraries names
6775
####Example
6876

6977
If you want to create virtualenv with path /home/user/.virtualenvs/django15 with Django 1.5 and IPython 0.13 installed using python
70-
/usr/opt/bin/python3.2 then you can write
78+
/opt/local/bin/python3.2 then you can write
7179

7280
python::virtualenv {"/home/user/.virtualenvs/django15":
73-
prefix => "/usr/opt",
81+
prefix => "/opt/local",
7482
short_version => "3.2",
7583
libraries => "django==1.5 ipython==0.13",
7684
}

0 commit comments

Comments
 (0)