File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ pref - path prefix where python should be installed (default /usr/local)
2020
2121from_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
2533Configures 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
6977If 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 }
You can’t perform that action at this time.
0 commit comments