From: "Alexey M. Tourbin" <at@altlinux.org>
To: devel@lists.altlinux.org
Subject: [devel] [git update] packages/rpm-build-python: heads/master
Date: Wed, 14 Mar 2007 20:37:08 +0300
Message-ID: <20070314173708.GN6039@solemn.turbinal> (raw)
Мужыки!
Специалисты по питону есть или вам дядя Вася всё будет делать?
Update of /people/at/packages/rpm-build-python.git
Changes statistics since `0.29-alt2-11-g2e6c99a' follows:
.exrc | 1 +
rpm-build-python/python.req.files | 2 ++
rpm-build-python/python.req.py | 10 ++++++----
3 files changed, 9 insertions(+), 4 deletions(-)
Changelog since `0.29-alt2-11-g2e6c99a' follows:
commit 928a9034d4f952a51518307e0cdcebc3cf85d0fa
Author: Alexey Tourbin <at@altlinux.ru>
Date: Wed Mar 14 20:33:44 2007 +0300
python.req.py: fixed multiple arguments in import clause
Old behaviour:
$ cat test.py
import os, re, string
$ /usr/lib/rpm/python.req.py test.py
python2.4(os)
$
New behaviour:
$ /usr/lib/rpm/python.req.py test.py
python2.4(os)
python2.4(re)
python2.4(string)
$
Note that python2.3 still works:
$ python2.3 /usr/lib/rpm/python.req.py test.py
python2.3(os)
python2.3(re)
python2.3(string)
$
commit f55dbd1ae9e6cb5a59d1e20e886d8f7f17bffd2a
Author: Alexey Tourbin <at@altlinux.ru>
Date: Wed Mar 14 20:18:46 2007 +0300
added .exrc
commit 0461dd625a557f49cc8252b0519534e754cf7068
Author: Alexey Tourbin <at@altlinux.ru>
Date: Wed Mar 14 18:12:40 2007 +0300
python.req.files: skip symbolic links
Full diff since `0.29-alt2-11-g2e6c99a' follows:
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000..1cf99a9
--- /dev/null
+++ b/.exrc
@@ -0,0 +1 @@
+set ts=8 sts=4 sw=4 et
diff --git a/rpm-build-python/python.req.files b/rpm-build-python/python.req.files
index 230143d..bbbb4a6 100755
--- a/rpm-build-python/python.req.files
+++ b/rpm-build-python/python.req.files
@@ -4,6 +4,8 @@ while IFS=$'\t' read -r f t; do
*"python script text"*)
echo "$f"
continue ;;
+ *"symbolic link to "*)
+ continue ;;
esac
case "$f" in
*.py)
diff --git a/rpm-build-python/python.req.py b/rpm-build-python/python.req.py
index c83ad0e..8c958e8 100755
--- a/rpm-build-python/python.req.py
+++ b/rpm-build-python/python.req.py
@@ -50,10 +50,14 @@ else :
if sys.version_info[0:2] < (2,4) :
def pro(x) :
return x
+ def namelist(import_node) :
+ return [x for x in import_node[2:] if x[0] != 12 ]
else :
def pro(x) :
return x[1]
-
+ def namelist(import_node) :
+ return [x for x in import_node[2][1:] if x[0] != 12 ]
+
ignore = dict([ (x,1) for x in
list(os.getenv('RPM_PYTHON_REQ_SKIP',"").split())
+ list(sys.builtin_module_names)]).has_key
@@ -69,9 +73,7 @@ else :
if REQ not in ['slight','relaxed'] or deep == 4 :
node = pro(node)
if node[1][1] == 'import' :
- for name in [x for x in node[2:] if x[0] != 12 ] :
- name = pro(name)
-
+ for name in namelist(node) :
if IS_HIER is None :
yield name[1][1][1]
else :
next reply other threads:[~2007-03-14 17:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-14 17:37 Alexey M. Tourbin [this message]
2007-03-14 18:43 ` Ivan Fedorov
2007-03-14 19:21 ` Alexey Tourbin
2007-03-15 4:30 ` Ivan Fedorov
2007-03-15 4:42 ` Alexey Tourbin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070314173708.GN6039@solemn.turbinal \
--to=at@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git