[python-numexpr] Initial import

Thibault North tnorth at fedoraproject.org
Mon Oct 31 13:39:42 UTC 2011


commit 18bd92e3649525a50224a2476483d364229b8e0a
Author: Thibault North <thibault.north at mail.mgill.ca>
Date:   Mon Oct 31 09:39:26 2011 -0400

    Initial import

 .gitignore          |    1 +
 python-numexpr.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..990b34d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/numexpr-1.4.2.tar.gz
diff --git a/python-numexpr.spec b/python-numexpr.spec
new file mode 100644
index 0000000..c480129
--- /dev/null
+++ b/python-numexpr.spec
@@ -0,0 +1,71 @@
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup}
+
+%global	module	numexpr
+
+Summary:	Fast numerical array expression evaluator for Python and NumPy
+Name:		python-%{module}
+Version:	1.4.2
+Release:	2%{?dist}
+Source0:	http://numexpr.googlecode.com/files/%{module}-%{version}.tar.gz
+License:	MIT
+Group:		Development/Languages
+URL:		http://numexpr.googlecode.com/
+
+Requires:	numpy >= 1.4.1
+BuildRequires:	numpy >= 1.4.1
+BuildRequires:	python-devel
+
+
+%description
+The numexpr package evaluates multiple-operator array expressions many
+times faster than NumPy can. It accepts the expression as a string,
+analyzes it, rewrites it more efficiently, and compiles it to faster
+Python code on the fly. It's the next best thing to writing the
+expression in C and compiling it with a specialized just-in-time (JIT)
+compiler, i.e. it does not require a compiler at runtime.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+sed -i "s|/usr/bin/env |/usr/bin/|" %{module}/cpuinfo.py
+
+%build
+python setup.py build 
+
+%check
+libdir=`ls build/|grep lib`
+export PYTHONPATH=`pwd`/build/$libdir
+python bench/timing.py
+
+%install
+rm -rf %{buildroot}
+
+python setup.py install -O1 --skip-build  --root=%{buildroot}
+#This could be done more properly ?
+chmod 0644 %{buildroot}%{python_sitearch}/%{module}/cpuinfo.py
+chmod 0755 %{buildroot}%{python_sitearch}/%{module}/*.so
+
+%files
+%doc ANNOUNCE.txt LICENSE.txt RELEASE_NOTES.txt README.txt
+%{python_sitearch}/numexpr/
+%{python_sitearch}/numexpr-%{version}-py*.egg-info/
+
+%changelog
+* Sun Oct 30 2011 Thibault North <tnorth at fedoraproject.org> - 1.4.2-2
+- Add check section
+- Fix permissions and remove useless sections
+
+* Thu Oct 20 2011 Thibault North <tnorth at fedoraproject.org> - 1.4.2-1
+- Updated to 1.4.2
+
+* Fri Apr 29 2011 Thibault North <tnorth at fedoraproject.org> - 1.4.1-3
+- Fix buildroot issue
+
+* Tue Dec 21 2010 Thibault North <tnorth at fedoraproject.org> - 1.4.1-2
+- Fixes for the review process
+
+* Wed Nov 05 2010 Thibault North <tnorth at fedoraproject.org> - 1.4.1-1
+- Initial package based on Mandriva's one
+
diff --git a/sources b/sources
index e69de29..60a9fb9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+139115cc196dc57a66b2eb30cd3e80a0  numexpr-1.4.2.tar.gz


More information about the scm-commits mailing list