Difference between revisions of "PyPy"

From ArchWiki
Jump to: navigation, search
m (Typo correction in Installing Packages)
(Expansion of EasyInstall info)
Line 6: Line 6:
 
{{bc|pacman -S pypy}}   
 
{{bc|pacman -S pypy}}   
  
==easy_install==
+
==EasyInstall==
Python libraries and programs can be installed in PyPy through easy_install. PyPy libraries are stored in a different folder then Cpython libraries.  
+
Python libraries and programs can be installed in PyPy through EasyInstall. PyPy libraries are stored in a different folder then Cpython libraries.  
===easy_install Installation===
+
===EasyInstall Installation===
easy_install does not come with the PyPy package and must be installed manually.
+
EasyInstall does not come with the PyPy package and must be installed manually.
 
Create the /opt/pypy/site-packages/ folder.
 
Create the /opt/pypy/site-packages/ folder.
 
{{bc|sudo mkdir /opt/pypy/site-packages/}}
 
{{bc|sudo mkdir /opt/pypy/site-packages/}}
Download distribute_setup.py to the folder /opt/pypy/ and run it. distribute_setup.py will install easy_install.
+
Download distribute_setup.py to the folder /opt/pypy/ and run it. distribute_setup.py will install EasyInstall.
 
{{bc|cd /opt/pypy/
 
{{bc|cd /opt/pypy/
 
sudo wget python-distribute.org/distribute_setup.py
 
sudo wget python-distribute.org/distribute_setup.py
 
sudo pypy distribute_setup.py
 
sudo pypy distribute_setup.py
 
}}
 
}}
easy_install will be located at /opt/pypy/bin/easy_install
+
EasyInstall will be located at /opt/pypy/bin/easy_install
  
 
===Installing Packages===
 
===Installing Packages===
{{bc|sudo /opt/pypy/bin/easy_instal}}   
+
To install EasyInstall package package_name enter
 +
{{bc|sudo /opt/pypy/bin/easy_install package_name}}   
  
 
==See Also==
 
==See Also==

Revision as of 03:04, 21 December 2012

PyPy is an alternate implementation of the Python 2.7.2 interpreter. PyPy's benefits are in the area of speed, memory usage, sandboxing and stacklessness. It is compatible with Cpython with some exceptions.

Installation

Install the pypy package

pacman -S pypy

EasyInstall

Python libraries and programs can be installed in PyPy through EasyInstall. PyPy libraries are stored in a different folder then Cpython libraries.

EasyInstall Installation

EasyInstall does not come with the PyPy package and must be installed manually. Create the /opt/pypy/site-packages/ folder.

sudo mkdir /opt/pypy/site-packages/

Download distribute_setup.py to the folder /opt/pypy/ and run it. distribute_setup.py will install EasyInstall.

cd /opt/pypy/
sudo wget python-distribute.org/distribute_setup.py
sudo pypy distribute_setup.py

EasyInstall will be located at /opt/pypy/bin/easy_install

Installing Packages

To install EasyInstall package package_name enter

sudo /opt/pypy/bin/easy_install package_name

See Also

PyPy website

Python