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
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
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
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
Changes by Antonio Cavallo a.cava...@cavallinux.eu:
--
nosy: +benjamin.peterson, doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17819
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
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
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
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
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
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
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/
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
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 (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
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
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
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
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
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
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
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.
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
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
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).
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
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
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
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
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
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
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
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
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
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
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
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
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
...
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
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
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
41 matches
Mail list logo