[issue17905] Add check for locale.h

2013-05-11 Thread Antonio Cavallo
Antonio Cavallo added the comment: I see, in that case wouldn't make more sense completely remove the check for the langinfo.h either? I think is better to close the issue to keep the noise low. Thanks -- resolution: - works for me status: open - closed

[issue17905] Add check for locale.h

2013-05-11 Thread Antonio Cavallo
Antonio Cavallo added the comment: ok I see it, thanks. I've attached a new patch fixing the files with the locale's guards. Modules/readline.c might have the SAVE_LOCALE renamed into HAVE_SETLOCALE but the patch doesn't address that bit. Android has definitively locale.h but it is a dummy

[issue17819] removes need for CONFIG_SITE external configuration

2013-05-04 Thread Antonio Cavallo
Antonio Cavallo added the comment: So far it seems the special handling in config.site is restricted to these two bits ptc/ptmx (I'm targeting android in cross compiling at the moment). -- ___ Python tracker rep...@bugs.python.org http

[issue17905] Add check for locale.h

2013-05-04 Thread Antonio Cavallo
New submission from Antonio Cavallo: This patch adds autoconf.ac check for the locale.h file in addition to langinfo.h. The patch contains also a fix to Python/fileutils.c file. The android ndk provides locale.h but no langinfo.h: this fixes the issue. BTW bionic doesn't have any runtime

[issue17819] removes need for CONFIG_SITE external configuration

2013-04-30 Thread Antonio Cavallo
Changes by Antonio Cavallo a.cava...@cavallinux.eu: -- nosy: +benjamin.peterson, doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17819

[issue16347] configure.ac patch

2013-04-25 Thread Antonio Cavallo
Antonio Cavallo added the comment: I suppose to reduce the noise is better close this, thanks -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16347

[issue17819] removes need for CONFIG_SITE external configuration

2013-04-22 Thread Antonio Cavallo
New submission from Antonio Cavallo: This patch introduces two new options (--enable-ptmx, --enable-ptc) to the configure script. In cross compile the actual code requires an external config.site config file to set the result values for the AC_CHECK_FILE macros on /dev/ptmx, /dev/ptc

Makefile based python 2.7.x fork

2013-03-11 Thread Antonio Cavallo
Hi, I'm releasing a 2.7.x python fork with a makefile based build: this removes the need for the autoconfigure/setup.py actual toolchain simplifying the whole build process. An additional advantage is the ability to cross compile (linux/macos and android) the python interpreter and most of the

makefile based python build

2013-02-12 Thread Antonio Cavallo
Hi, I'm releasing my first attempt to cross compile python on android using a simple makefile based build system: https://bitbucket.org/cavallo71/android As side effect it can also build on a gcc based system as (linux so far). The attempt was started in order to simplify the build

[issue16347] configure.ac patch

2012-11-02 Thread Antonio Cavallo
Antonio Cavallo added the comment: Hi, the patch it is really simple, it adds the @LIB@ and @ARCH@ variables to the configure machinery. If you look into the Makefile.pre.in: INCLUDEDIR=¬@includedir@ CONFINCLUDEDIR=¬$(exec_prefix)/include SCRIPTDIR=¬…$(prefix)/lib This hardcodes lib

[issue16347] configure.ac patch

2012-10-28 Thread Antonio Cavallo
New submission from Antonio Cavallo: I've noticed that linux distros have a set of patch to fix a hardcoded lib in their makefiles: eg. Makefile.pre.in: INCLUDEDIR=¬@includedir@ CONFINCLUDEDIR=¬$(exec_prefix)/include SCRIPTDIR=¬…$(prefix)/lib== HARDCODED This is due to the fact

Pyvm - Continuous python integration

2010-07-04 Thread Antonio Cavallo
the underlying tools to manage the full build cycle (now hosted in sf.net) Help needed === - Debian packaging Have fun, Antonio Cavallo -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue6585] configure.in forces specific autoconf version

2009-07-27 Thread Antonio Cavallo
New submission from Antonio Cavallo a.cava...@cavallinux.eu: Hi, I've seen the code change in /python/trunk/configure.in (rev. 74072): it enforces a specific autoconfig version (2.61) in order to build python. Unfortunately OpenSuSE 11.1 (mainstream at time of writing) has an updated

[issue6585] configure.in forces specific autoconf version

2009-07-27 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Yes the rebuild does an autoreconf step. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6585

Python svn builds

2009-06-12 Thread A. Cavallo
Python svn builds (http://pyvm.sourceforge.net) is a project to provide python binary builds ready to use. The main features for these builds are: + install under /opt/opt-python-svnX-2.7a0 (X is the svn revision) + multiple interpreters can be installed side by side + installed in

Re: install older Python version parallel

2009-06-11 Thread A. Cavallo
Hi, I'm working on a project of mine that does creates python installation under /opt so they can be installed side by side with a system installed one. There's a web page: http://pyvm.sourceforge.net/ With links to the newest build plus all teh accompaining unitests. But you can use the

Re: easiest way to check python version?

2009-06-10 Thread A. Cavallo
A common way to do it is (it is widely accepted): python -c 'import sys; print sys.version[:3]' Regards, Antonio On Wednesday 10 June 2009 12:25:22 John Machin wrote: On Jun 10, 9:01 pm, dmitrey dmitrey.kros...@scipy.org wrote: hi all, what is easiest way to check python version (to

Re: Using logging module to log into flash drive

2009-06-09 Thread A. Cavallo
Hi, the problem screams for a separate thread. Anyway there's a TimedRotatingFileHandler handler in the logging package: you can derive from it and change the emit/doRollover pair to hold the records until a device is not ready. Regards, Antonio On Tuesday 09 June 2009 16:57:00 kretel

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-03 Thread A. Cavallo
No wonder, you have never actually used C++ with C types. An extern C clause tells the compiler to generate C functions (more precisely, functions that conform to the C ABI conventions), so effectively you're calling into C, not into C++. Seems like the only sane way to do it. In

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-03 Thread A. Cavallo
On Wednesday 03 June 2009 14:05:35 Roy Smith wrote: In article mailman.1046.1244023834.8015.python-l...@python.org, A. Cavallo a.cava...@mailsnare.com wrote: The following is the STL equivalent of: print [ x*2 for range(10) in data if (x%2 == 0) ] Are you sure about that? I haven't

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-03 Thread A. Cavallo
On Wednesday 03 June 2009 14:05:35 Roy Smith wrote: #include iostream int main(int argc, char * argv[]) { std::cout SyntaxError: can't assign to function call; std::cout endl; } Ops, I've forgotten a.cpp: In function ‘int main(int, char**)’: a.cpp:5: error: ‘endl’ was not

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread A. Cavallo
Mmmm, not really a conspiracy but it is not that trivial In wrapping c++ you might find useful the commands nm with c++filt although they work under linux there is the same pair for every platform (under windows I remember there is objdump): they should only you need to wrap a c++ library.

Re: help! Troubled when embed python into C++

2009-05-25 Thread A. Cavallo
You need the: int main(int argc, char * argv[]) { Py_Initialize(); PySys_SetArgv(argc, argv); PyRun_SimpleString(execfile(r'1.py')); Py_Finalize(); return 0; } Regards, Antonio On Sunday 24 May 2009 11:42:13 孟炜 wrote: I have the following codes in C++: #include Python.h

Re: Searching for pyvm

2009-05-25 Thread A. Cavallo
http://students.ceid.upatras.gr/~sxanth/pyvm/ Does this help? Regards, Antonio On Monday 25 May 2009 00:19:57 Vladimir G. Ivanovic wrote: Hello, I'm looking for the sources to pyvm, a python virtual machine implementation which can run Python 2.4 bytecode. If someone could point me in the

Re: Replacing module with a stub for unit testing

2009-05-24 Thread A. Cavallo
how about the old and simple: import ExpensiveModuleStub as ExpensiveModule On a different league you could make use of decorator and creating caching objects but that depends entirely on the requirements (how strict your test must be, test data sizes involved and more, much more details).

Re: package with executable

2009-05-20 Thread A. Cavallo
Hi, Matplotlib and Numpy, and a command line program. My goal is to create a distributable package, that should ideally contain both the gnucal package and the command line program. * where should the executable module be wrt setup.py and/or the package directory in the source

Re: Package problem

2009-05-19 Thread A. Cavallo
It is solved in other languages.. for example perl.. and delphi I don't know much about perl, and even less about delphi, but I am pretty sure it does not solve the problem of overwriting files from a package with an installation outside the control of the package manager. On a sytem a

Re: Package problem

2009-05-18 Thread A. Cavallo
On Monday 18 May 2009 20:52:52 Sverre wrote: I'm using Ubuntu and some of the packages in the repository are too old. So I got the thought to remove nearly all packages downloaded from the repository and install them with easy_install. Is this a way to go without greater problems? If you're

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi, the latest patch (custom-log.diff minus the import logging at the begin) breaks the imaging python module build: the log is in the file susebuild.failed.imaging.log. -- Added file: http://bugs.python.org/file13939

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, there is a colliding warn symbol: one defiend whiting import warnings as warn and another defined as warn = logger.warn (~ line 56). It breaks all the modules build (see attached file susebuild.failed.imaging-2.log

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, This is the latest patch to log.py that compiles with the latest python svn 72494. It shows no problem with the few modules I've used so far: now I can't decide if this should go mainline or not but I'll leave here

[issue3992] removed custom log from distutils

2009-05-08 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Actually I think the problem (see the attached file susebuild.log) is in the module time.so: during the build the python interpreter has not access to it (it is dynamically loaded) and it fails. If that works is because an already

[issue3992] removed custom log from distutils

2009-05-07 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, there is a new patch. - Logger is now back to Log - put back INFO/DEBUG etc. - Wrapped the code inside a try/except I removed the _global_logger/logger variables, because they're superfluous: so the cound

[issue3992] removed custom log from distutils

2009-05-07 Thread Antonio Cavallo
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Removed file: http://bugs.python.org/file13908/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992

[issue3992] removed custom log from distutils

2009-05-06 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: This patch changes the log.py in order to make use of the logging infrastructure. There are few point tough worth of mention. There're two separate stages when log.py is used: a) during the python interpreter build (let's call

[issue3992] removed custom log from distutils

2009-05-06 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, I agree that a change in that module is risky but a warning won't solve the main problem in the long run: anyway I'm not able to comment about the best strategy. Now the access problem: If an import logging is put

[issue3992] removed custom log from distutils

2009-05-06 Thread Antonio Cavallo
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Added file: http://bugs.python.org/file13908/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992

[issue3992] removed custom log from distutils

2009-05-06 Thread Antonio Cavallo
Changes by Antonio Cavallo a.cava...@cavallinux.eu: Removed file: http://bugs.python.org/file13906/issue3992.remove-custom-log.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3992

Numpy on python 2.7a

2009-05-05 Thread A. Cavallo
... Is there any way I can increase the output to discover what went wrong? Best regards, Antonio Cavallo -- http://mail.python.org/mailman/listinfo/python-list

pyvm 1.4.12

2005-04-07 Thread Antonio Cavallo
to python 2.4.1 * added pyXLWriter * imgmathhack2 to use latex formulas in restructured texts Antonio Cavallo [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

pyvm - a portable python virtual machine

2005-03-06 Thread Antonio Cavallo
apply to the singular package (see the docs) Author: Antonio Cavallo [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html