[packages/python-astroid] Version: 1.4.1
jajcus
jajcus at pld-linux.org
Mon Dec 7 10:28:55 CET 2015
commit cd33eed27753f02923c926e938cb8d3638eaa7a3
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Mon Dec 7 10:28:40 2015 +0100
Version: 1.4.1
now with Python 3.5 support
modules_without_sources.patch | 27 ++++++++++++++-------------
python-astroid.spec | 10 ++++------
2 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/python-astroid.spec b/python-astroid.spec
index 655dafc..165960a 100644
--- a/python-astroid.spec
+++ b/python-astroid.spec
@@ -7,13 +7,13 @@
Summary: An abstract syntax tree for Python 2 with inference support
Summary(pl.UTF-8): Abstrakcyjnego drzewa składniowe dla Pythona 2 z obsługą wywodu
Name: python-%{module}
-Version: 1.3.6
-Release: 5
+Version: 1.4.1
+Release: 1
License: LGPL v2.1+
Group: Development/Languages/Python
#Source0Download: https://pypi.python.org/pypi/astroid/
Source0: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz
-# Source0-md5: 0d387f5b2e878f424b95af3bfe44e106
+# Source0-md5: a75975473d7d1d381dbd6f8370251f1a
Patch0: modules_without_sources.patch
URL: http://www.astroid.org/
%if %{with python2}
@@ -89,9 +89,7 @@ potrzebami pylinta. Dawniej nazywała się logilab-astng.
rm -rf $RPM_BUILD_ROOT
%if %{with python3}
-%py3_build --build-base=build3 install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%if %{with python2}
diff --git a/modules_without_sources.patch b/modules_without_sources.patch
index c381556..1baa39d 100644
--- a/modules_without_sources.patch
+++ b/modules_without_sources.patch
@@ -1,7 +1,7 @@
-diff -dur astroid-1.3.6.orig/astroid/manager.py astroid-1.3.6/astroid/manager.py
---- astroid-1.3.6.orig/astroid/manager.py 2015-03-14 15:04:09.000000000 +0100
-+++ astroid-1.3.6/astroid/manager.py 2015-06-11 13:57:16.000000000 +0200
-@@ -144,7 +144,7 @@
+diff -dur -x '*.orig' astroid-1.4.1.orig/astroid/manager.py astroid-1.4.1/astroid/manager.py
+--- astroid-1.4.1.orig/astroid/manager.py 2015-11-29 21:37:16.000000000 +0100
++++ astroid-1.4.1/astroid/manager.py 2015-12-07 10:27:07.000000000 +0100
+@@ -118,7 +118,7 @@
module = self.zip_import_data(filepath)
if module is not None:
return module
@@ -10,19 +10,20 @@ diff -dur astroid-1.3.6.orig/astroid/manager.py astroid-1.3.6/astroid/manager.py
if mp_type == imp.C_EXTENSION and not self._can_load_extension(modname):
return self._build_stub_module(modname)
try:
-@@ -153,8 +153,6 @@
+@@ -127,9 +127,6 @@
msg = 'Unable to load module %s (%s)' % (modname, ex)
- raise AstroidBuildingException(msg)
+ raise exceptions.AstroidBuildingException(msg)
return self.ast_from_module(module, modname)
- elif mp_type == imp.PY_COMPILED:
-- raise AstroidBuildingException("Unable to load compiled module %s" % (modname,))
+- msg = "Unable to load compiled module %s" % (modname,)
+- raise exceptions.AstroidBuildingException(msg)
if filepath is None:
- raise AstroidBuildingException("Unable to load module %s" % (modname,))
- return self.ast_from_file(filepath, modname, fallback=False)
-diff -dur astroid-1.3.6.orig/astroid/modutils.py astroid-1.3.6/astroid/modutils.py
---- astroid-1.3.6.orig/astroid/modutils.py 2015-03-09 23:00:27.000000000 +0100
-+++ astroid-1.3.6/astroid/modutils.py 2015-06-11 13:57:49.000000000 +0200
-@@ -534,6 +534,10 @@
+ msg = "Unable to load module %s" % (modname,)
+ raise exceptions.AstroidBuildingException(msg)
+diff -dur -x '*.orig' astroid-1.4.1.orig/astroid/modutils.py astroid-1.4.1/astroid/modutils.py
+--- astroid-1.4.1.orig/astroid/modutils.py 2015-11-29 21:37:16.000000000 +0100
++++ astroid-1.4.1/astroid/modutils.py 2015-12-07 10:26:47.000000000 +0100
+@@ -563,6 +563,10 @@
return None, imp.C_BUILTIN
elif mtype == imp.PKG_DIRECTORY:
mp_filename = _has_init(mp_filename)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-astroid.git/commitdiff/cd33eed27753f02923c926e938cb8d3638eaa7a3
More information about the pld-cvs-commit
mailing list