1 |
saispo |
65239 |
%define name ipython |
2 |
lebedov |
146101 |
%define version 0.11 |
3 |
|
|
%define release %mkrel 2 |
4 |
saispo |
65239 |
|
5 |
lebedov |
146101 |
Summary: An interactive computing environment for Python |
6 |
|
|
Name: %{name} |
7 |
|
|
Version: %{version} |
8 |
|
|
Release: %{release} |
9 |
|
|
Source0: http://pypi.python.org/packages/source/i/%{ipython}/%{name}-%{version}.tar.gz |
10 |
|
|
License: BSD |
11 |
|
|
Group: Development/Python |
12 |
|
|
Url: http://ipython.org |
13 |
|
|
BuildArch: noarch |
14 |
|
|
Requires: python >= 2.6 |
15 |
|
|
Requires: python-pexpect >= 2.2 |
16 |
|
|
Suggests: python-mpi4py |
17 |
|
|
Suggests: wxPython, python-qt4, pyside >= 1.0.3 |
18 |
|
|
Suggests: python-pygments |
19 |
|
|
Suggests: python-pyzmq >= 2.1.4 |
20 |
|
|
BuildRequires: emacs, python-devel |
21 |
saispo |
65239 |
|
22 |
|
|
%description |
23 |
lebedov |
146101 |
The goal of IPython is to create a comprehensive environment for |
24 |
|
|
interactive and exploratory computing. To support this goal, IPython |
25 |
|
|
has two main components: |
26 |
saispo |
65239 |
|
27 |
lebedov |
146101 |
* An enhanced interactive Python shell. |
28 |
|
|
* An architecture for interactive parallel computing. |
29 |
saispo |
65239 |
|
30 |
lebedov |
146101 |
The enhanced interactive Python shell has the following main features: |
31 |
saispo |
65239 |
|
32 |
lebedov |
146101 |
* Comprehensive object introspection. |
33 |
|
|
* Input history, persistent across sessions. |
34 |
|
|
* Caching of output results during a session with automatically |
35 |
|
|
generated references. |
36 |
|
|
* Readline based name completion. |
37 |
|
|
* Extensible system of 'magic' commands for controlling the |
38 |
|
|
environment and performing many tasks related either to IPython or |
39 |
|
|
the operating system. |
40 |
|
|
* Configuration system with easy switching between different setups |
41 |
|
|
(simpler than changing $PYTHONSTARTUP environment variables every |
42 |
|
|
time). |
43 |
|
|
* Session logging and reloading. |
44 |
|
|
* Extensible syntax processing for special purpose situations. |
45 |
|
|
* Access to the system shell with user-extensible alias system. |
46 |
|
|
* Easily embeddable in other Python programs and wxPython GUIs. |
47 |
|
|
* Integrated access to the pdb debugger and the Python profiler. |
48 |
saispo |
65239 |
|
49 |
lebedov |
146101 |
The parallel computing architecture has the following main features: |
50 |
saispo |
65239 |
|
51 |
lebedov |
146101 |
* Quickly parallelize Python code from an interactive Python/IPython |
52 |
|
|
session. |
53 |
|
|
* A flexible and dynamic process model that be deployed on anything |
54 |
|
|
from multicore workstations to supercomputers. |
55 |
|
|
* An architecture that supports many different styles of parallelism, |
56 |
|
|
from message passing to task farming. |
57 |
|
|
* Both blocking and fully asynchronous interfaces. |
58 |
|
|
* High level APIs that enable many things to be parallelized in a few |
59 |
|
|
lines of code. |
60 |
|
|
* Share live parallel jobs with other users securely. |
61 |
|
|
* Dynamically load balanced task farming system. |
62 |
|
|
* Robust error handling in parallel code. |
63 |
|
|
|
64 |
saispo |
65239 |
%prep |
65 |
|
|
%setup -q -n %{name}-%{version} |
66 |
|
|
|
67 |
|
|
%build |
68 |
|
|
emacs -batch -f batch-byte-compile docs/emacs/ipython.el |
69 |
|
|
|
70 |
|
|
%install |
71 |
|
|
%__rm -rf %{buildroot} |
72 |
lebedov |
146101 |
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} |
73 |
saispo |
65239 |
%__mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/ |
74 |
|
|
%__install -m 644 docs/emacs/ipython.el* %{buildroot}%{_datadir}/emacs/site-lisp/ |
75 |
lebedov |
146101 |
chmod 644 %{buildroot}%{_mandir}/man1/*.1* |
76 |
|
|
find %{buildroot} -name .buildinfo -exec rm -f {} \; |
77 |
|
|
find %{buildroot} -name .git_commit_info.ini -exec rm -rf {} \; |
78 |
saispo |
65239 |
|
79 |
|
|
%clean |
80 |
|
|
%__rm -rf %{buildroot} |
81 |
|
|
|
82 |
|
|
%files |
83 |
|
|
%defattr(-,root,root) |
84 |
lebedov |
146101 |
%doc docs/examples |
85 |
saispo |
65239 |
%{_bindir}/* |
86 |
lebedov |
146101 |
%{py_sitedir}/* |
87 |
saispo |
65239 |
%{_datadir}/emacs/site-lisp/* |
88 |
|
|
%{_mandir}/man1/* |