Commit 79df020f authored by Guilherme Salgado's avatar Guilherme Salgado Committed by Sebastian Ramacher

Imported Debian patch 0.7-svn20050721-2

parent e37f487b
pylib for Debian
----------------
<possible notes regarding this package - if none, delete this file>
-- Guilherme Salgado <salgado@async.com.br>, Sat, 23 Jul 2005 10:48:20 -0300
codespeak-lib (0.7-svn20050721-2) unstable; urgency=low
* Fixed some installation problems and removed windows-specific scripts.
-- Guilherme Salgado <salgado@async.com.br> Mon, 12 Dec 2005 16:41:23 -0200
codespeak-lib (0.7.20050829-0ubuntu1) breezy; urgency=low
* Clean up the packaging.
-- Matthias Klose <doko@ubuntu.com> Mon, 29 Aug 2005 16:36:09 +0200
codespeak-lib (0.7-svn20050721) unstable; urgency=low
* Initial Release.
-- Guilherme Salgado <salgado@async.com.br> Sat, 23 Jul 2005 10:48:20 -0300
Source: codespeak-lib
Section: python
Priority: optional
Maintainer: Guilherme Salgado <salgado@async.com.br>
Build-Depends: python2.3-dev, python2.4-dev, python, debhelper (>= 4.2)
Standards-Version: 3.6.2
Package: python-codespeak-lib
Architecture: all
Depends: ${python:Depends}
Conflicts: python-pylib
Replaces: python-pylib
Description: A library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
Package: python2.3-codespeak-lib
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
Conflicts: python2.3-pylib
Replaces: python2.3-pylib
Description: A library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
.
This version works with python2.3
Package: python2.4-codespeak-lib
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
Conflicts: python2.4-pylib
Replaces: python2.4-pylib
Description: A library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
.
This version works with python2.4
This package was debianized by Guilherme Salgado <salgado@async.com.br> on
Sat, 23 Jul 2005 10:48:20 -0300.
It was downloaded from http://codespeak.net/
Copyright:
Upstream Authors: Holger Krekel (hpk at trillke net)
Jens-Uwe Mager (jum at anubis han de)
Philipp von Weitershausen (philipp at weitershausen de)
License:
py lib Copyright holders, 2003-2005
-----------------------------------
Except when otherwise stated (look for LICENSE files or information at
the beginning of each file) the files in the 'py' directory are
copyrighted by one or more of the following people and organizations:
Holger Krekel <hpk@trillke.net>
merlinux GmbH, Germany <office@merlinux.de>
Armin Rigo <arigo@tunes.org>
Jan Balster <jan@balster.info> (tkinter test backend)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
py/documentation/TODO.txt
py/documentation/why_py.txt
py/documentation/contact.txt
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DOC=usr/share/doc
PYVERS=$(subst -dev,,\
$(subst python,,\
$(filter python%-dev,\
$(shell sed -n '/^Build-Depends/s/,//gp' debian/control))))
PYVER := $(shell python -c 'import sys; print sys.version[:3]')
CURDIR := $(shell pwd)
build: build-stamp
build-stamp: $(PYVERS:%=build-python%)
build-python%:
python$* setup.py build
cd py/c-extension/greenlet && python$* setup.py build
touch $@
clean:
dh_testdir
dh_testroot
cd py/c-extension/greenlet && python$* setup.py clean
rm -rf py/c-extension/greenlet/build
rm -rf *-stamp build build-python*
-find . -name "*.pyc" |xargs -r rm
dh_clean
install: build install-prereq $(PYVERS:%=install-python%)
mkdir -p debian/python-codespeak-lib/usr/bin
for i in debian/python$(PYVER)-codespeak-lib/usr/bin/py.*; do \
iv=`basename $$i .python$(PYVER)`; \
ln -sf $${iv}.python$(PYVER) debian/python-codespeak-lib/usr/bin/$$iv; \
done
install-prereq:
dh_testdir
dh_testroot
dh_clean -k
install-python%:
dh_installdirs -ppython$*-codespeak-lib \
usr/share/doc/python$*-codespeak-lib \
usr/bin
/usr/bin/python$* setup.py install --root debian/python$*-codespeak-lib
cd py/c-extension/greenlet && python$* setup.py install --root $(CURDIR)/debian/python$*-codespeak-lib
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/c-extension/greenlet/build
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/c-extension/greenlet
for f in debian/python$*-codespeak-lib/usr/bin/py.*; do \
b=`basename $$f`; \
t=debian/python$*-codespeak-lib/usr/bin/$${b}.python$*; \
sed "1s|.*|#!/usr/bin/python$*|" $$f > $$t; \
chmod 755 $$t; \
rm $$f; \
done
rm -rf debian/python$*-codespeak-lib/usr/bin/_findpy.py
rm -rf debian/python$*-codespeak-lib/usr/bin/_makepyrelease.py
rm -rf debian/python$*-codespeak-lib/usr/bin/*.cmd
chmod 644 debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/execnet/script/shell.py
-find debian/python$*-codespeak-lib -name '*.png' -o -name '*.gif' | xargs chmod 644
mkdir -p debian/python$*-codespeak-lib/usr/share/lintian/overrides
echo "python$*-codespeak-lib: image-file-in-usr-lib" \
> debian/python$*-codespeak-lib/usr/share/lintian/overrides/python$*-codespeak-lib
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/test/testing/data/syntax_error.py
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/bin
-find . -name "*.py[co]" |xargs rm
: # Replace all '#!' calls to python with /usr/bin/python$*
: # and make them executable
for i in `find debian -mindepth 3 -type f`; do \
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python$*\1,' \
$$i > $$i.temp; \
if cmp --quiet $$i $$i.temp; then \
rm -f $$i.temp; \
else \
mv -f $$i.temp $$i; \
chmod 755 $$i; \
echo "fixed interpreter: $$i"; \
fi; \
done
mv debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/documentation/* \
debian/python$*-codespeak-lib/usr/share/doc/python$*-codespeak-lib/
rmdir debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/documentation
dh_link -ppython$*-codespeak-lib \
/usr/share/doc/python$*-codespeak-lib \
/usr/lib/python$*/site-packages/py/documentation
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/LICENSE
# Build architecture independant packages using the common target.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs -i
dh_installdocs -i
rm -rf debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib
ln -s python$(PYVER)-codespeak-lib debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib
dh_compress -i -X.py
dh_fixperms -i
dh_python -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture dependant packages using the common target.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs -a
dh_installdocs -a
dh_installexamples -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_python -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install
#!/usr/bin/env python
from _findpy import py
import py
for x in py.path.local().visit('*.pyc', py.path.checker(dotfile=0)):
......
#!/usr/bin/python
from _findpy import py
import py
import re
string = py.std.sys.argv[1]
......
......@@ -11,7 +11,7 @@ http://docutils.sourceforge.net/docs/user/rst/quickref.html
"""
import os, sys
from _findpy import py
import py
from py.__.misc import rest
if __name__=='__main__':
......
#!/usr/bin/env python
from _findpy import py
import py
py.test.cmdline.main()
......@@ -700,7 +700,7 @@ static PyNumberMethods green_as_number = {
(inquiry)green_nonzero, /* nb_nonzero */
};
statichere PyTypeObject PyGreen_Type = {
PyTypeObject PyGreen_Type = {
PyObject_HEAD_INIT(NULL)
0,
"greenlet.greenlet",
......
......@@ -2,6 +2,10 @@
* this is the internal transfer function.
*
* HISTORY
* 07-Sep-05 (py-dev mailing list discussion)
* removed 'ebx' from the register-saved. !!!! WARNING !!!!
* It means that this file can no longer be compiled statically!
* It is now only suitable as part of a dynamic library!
* 24-Nov-02 Christian Tismer <tismer@tismer.com>
* needed to add another magic constant to insure
* that f in slp_eval_frame(PyFrameObject *f)
......@@ -31,7 +35,11 @@ static int
slp_switch(void)
{
register int *stackref, stsizediff;
__asm__ volatile ("" : : : "ebx", "esi", "edi");
/* !!!!WARNING!!!! need to add "ebx" in the next line, as well as in the
* last line of this function, if this header file is meant to be compiled
* non-dynamically!
*/
__asm__ volatile ("" : : : "esi", "edi");
__asm__ ("movl %%esp, %0" : "=g" (stackref));
{
SLP_SAVE_STATE(stackref, stsizediff);
......@@ -42,9 +50,9 @@ slp_switch(void)
: "r" (stsizediff)
);
SLP_RESTORE_STATE();
return 0;
}
__asm__ volatile ("" : : : "ebx", "esi", "edi");
__asm__ volatile ("" : : : "esi", "edi");
return 0;
}
#endif
......
import py
gdir = py.path.local(py.__file__).dirpath()
path = gdir.join('c-extension', 'greenlet', 'greenlet.c')
greenlet = path.getpymodule().greenlet
path = gdir.join('c-extension', 'greenlet', 'greenlet.so')
greenlet = path.pyimport().greenlet
......@@ -62,11 +62,6 @@ def test_module_file_not_found():
col = py.test.collect.Module(fn)
py.test.raises(py.error.ENOENT, col.run)
def test_syntax_error_in_module():
modpath = datadir.join('syntax_error.py')
col = py.test.collect.Module(modpath)
py.test.raises(SyntaxError, col.run)
def test_disabled_class():
col = py.test.collect.Module(datadir.join('disabled.py'))
l = col.run()
......
......@@ -108,15 +108,6 @@ class TestTerminalSession:
assert len(l) == 2
assert out.find('2 failed') != -1
def test_syntax_error_module(self):
session = self.session
session.main([str(datadir / 'syntax_error.py')])
l = session.getitemoutcomepairs(py.test.Item.Failed)
assert len(l) == 1
out = self.file.getvalue()
assert out.find(str('syntax_error.py')) != -1
assert out.find(str('not python')) != -1
def test_exit_first_problem(self):
session = self.session
session.config.option.exitfirst = True
......
from distutils.core import setup
from distutils.extension import Extension
import py
py._dist.setup(py)
setup(name="greenlet",
version="0.1",
ext_modules=[Extension(
name='greenlet', sources=['py/c-extension/greenlet/greenlet.c'])])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment