Re: [ANN] Retrospective of Python compilation efforts

2019-12-24 Thread Guido van Rossum
Nice work. On Tue, Dec 24, 2019 at 2:59 AM Paul Sokolovsky wrote: > Hello, > > Over the years, the Python community produced many compiler projects for > the language, second to probably only C and LISP. Majority are of > course of research and proof of concept quality, but there're a number > o

Re: Compilation

2019-01-06 Thread Terry Reedy
On 1/6/2019 6:20 PM, Avi Gross wrote: I suspect there is some python tool that can go through a directory structure of python code and produce appropriate byte code files in one sweep. import compileall help(compileall) The Windows installer optionally runs it. It is usually needed if one d

RE: Compilation (was: the python name)

2019-01-06 Thread Avi Gross
ailed discussions of the differences between translation and compilation and other such words. I will grant your points. I did not intend what you may have read into it. As you suggest, I am very aware of generations of tools including lint versus cc as I did programming back for more years using

Compilation (was: the python name)

2019-01-06 Thread Peter J. Holzer
On 2019-01-06 15:09:40 -0500, Avi Gross wrote: > [Can we ever change the subject line?] Feel free. > {REAL SUBJECT: degrees of compilation.} > Peter wrote: > > "... Hoever, this is the Python list and one of the advantages of > Python is that we don't have to co

Re: What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-09 Thread ddbug
I am a Python beginner but would like to contribute $0.02 in absence of authoritative answers (thanks Tim J. for encouragement). After researching this topic for a while, it looks like they now recommend distributing wheels rather than sdist's. For Windows thus is reasonable, given that there i

Re: What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-08 Thread Tim Johnson
* Ivan Pozdeev via Python-list [161106 17:28]: > https://wiki.python.org/moin/WindowsCompilers has now completely replaced > instructions for `distutils`-based packages (starting with `from > distutils.core import setup`) with ones for `setuptools`-based ones > (starting with `from setuptools impo

What is currently the recommended way to work with a distutils-based setup.py that requires compilation?

2016-11-06 Thread Ivan Pozdeev via Python-list
https://wiki.python.org/moin/WindowsCompilers has now completely replaced instructions for `distutils`-based packages (starting with `from distutils.core import setup`) with ones for `setuptools`-based ones (starting with `from setuptools import setup`). However, if I have a `distutils`-based

Re: Without compilation, how to find bugs?

2016-10-14 Thread sohcahtoa82
On Friday, October 14, 2016 at 5:46:14 AM UTC-7, Steve D'Aprano wrote: > On Fri, 14 Oct 2016 08:04 pm, BartC wrote: > > > On 14/10/2016 01:59, sohcahto...@gmail.com wrote: > >> On Thursday, October 13, 2016 at 4:06:36 PM UTC-7, pozz wrote: > > > >>> Are the things exactly how I understood, or do

Re: Without compilation, how to find bugs?

2016-10-14 Thread sohcahtoa82
On Friday, October 14, 2016 at 2:05:01 AM UTC-7, BartC wrote: > On 14/10/2016 01:59, sohcahto...@gmail.com wrote: > > On Thursday, October 13, 2016 at 4:06:36 PM UTC-7, pozz wrote: > > >> Are the things exactly how I understood, or do I miss something in Python? > > > > As others have said, user a

Re: Without compilation, how to find bugs?

2016-10-14 Thread breamoreboy
mon goal: to discover bugs as soon as possible, > mostly during compilation process. Indeed I usually find some bugs > during compilation (or static analysis). It seems to me very important. As others have all ready mentioned there are plenty of static analysis tools for Python. > > Now

Re: Without compilation, how to find bugs?

2016-10-14 Thread Steve D'Aprano
f the features of Python that keeps it relatively slow is that function calls are resolved at runtime: calling len(x) has to do a runtime search for the name "len" before calling it. Victor Stinner is working on run-time optimizations which can detect when it is safe to replace that run-t

Re: Without compilation, how to find bugs?

2016-10-14 Thread Chris Angelico
On Fri, Oct 14, 2016 at 8:04 PM, BartC wrote: > On 14/10/2016 01:59, sohcahto...@gmail.com wrote: >> >> On Thursday, October 13, 2016 at 4:06:36 PM UTC-7, pozz wrote: > > >>> Are the things exactly how I understood, or do I miss something in >>> Python? >> >> >> As others have said, user a linter.

Re: Without compilation, how to find bugs?

2016-10-14 Thread BartC
On 14/10/2016 01:59, sohcahto...@gmail.com wrote: On Thursday, October 13, 2016 at 4:06:36 PM UTC-7, pozz wrote: Are the things exactly how I understood, or do I miss something in Python? As others have said, user a linter. With Python you're supposed to just be able run any source code i

Re: Without compilation, how to find bugs?

2016-10-13 Thread Marko Rauhamaa
pozz : > All the tricks have a common goal: to discover bugs as soon as possible, > mostly during compilation process. Indeed I usually find some bugs > during compilation (or static analysis). It seems to me very important. Yes, it can be very useful, and with Python, you sacrifice t

Re: Without compilation, how to find bugs?

2016-10-13 Thread sohcahtoa82
> static variables and functions (when needed), explicitly declare const > variables (if the piece of code will not change them), explicitly > declare all the functions, and so on. > > All the tricks have a common goal: to discover bugs as soon as possible, > mostly during compilatio

Re: Without compilation, how to find bugs?

2016-10-13 Thread Skip Montanaro
One other thing. The OP mentioned coming from C. If you are old enough, you will remember that many errors caught by gcc and other modern compilers used to be detected by external checkers like lint. Most Makefiles had "lint" targets in them. So although you might associate all sorts of error dete

Re: Without compilation, how to find bugs?

2016-10-13 Thread Irmen de Jong
On 14-10-2016 1:07, pozz wrote: > All the tricks have a common goal: to discover bugs as soon as possible, > mostly during > compilation process. Indeed I usually find some bugs during compilation (or > static > analysis). It seems to me very important. I wanted to reply a b

Re: Without compilation, how to find bugs?

2016-10-13 Thread Ben Finney
pozz writes: > All the tricks have a common goal: to discover bugs as soon as > possible, mostly during compilation process. Indeed I usually find > some bugs during compilation (or static analysis). It seems to me very > important. Do you also use static code analysis? Do you find

Re: Without compilation, how to find bugs?

2016-10-13 Thread Irmen de Jong
re const variables (if the piece of code will not change > them), > explicitly declare all the functions, and so on. > > All the tricks have a common goal: to discover bugs as soon as possible, > mostly during > compilation process. Indeed I usually find some bugs during compilati

Re: Without compilation, how to find bugs?

2016-10-13 Thread Grant Edwards
On 2016-10-13, pozz wrote: > However, I think the language interpreter could emit the error before > launching the script even without executing the wrong instruction, > because it perfectly knows how many arguments the function wants and > that one instruction calls it with a wrong number of

Re: Without compilation, how to find bugs?

2016-10-13 Thread Skip Montanaro
> I can execute the script without any problem and I will not notice the bug until I > test exactly the erroneous line of code (the call with only one argument). The key phrase there being "until I test..." There are static analysis tools for Python like pylint. Given this simple module: #!/usr/

Without compilation, how to find bugs?

2016-10-13 Thread pozz
the piece of code will not change them), explicitly declare all the functions, and so on. All the tricks have a common goal: to discover bugs as soon as possible, mostly during compilation process. Indeed I usually find some bugs during compilation (or static analysis). It seems to me very

Re: Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
Damn i'm so stupid... the files where in fron on of my eyes and i was just not able to find then .. On 2016-10-01 02:23, Steven Truppe wrote: Hi all, i've compiled python3.5 and all went fine, i find ./python and it works, most of the make test stuff is working my only problem is that i'm

Re: Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
I fond this in the ./configuration help: * --enable-shared disable/enable building shared python library* so i tried: $configure --enabled-shard but i can't still find a library inside my build directory. On 2016-10-01 02:23, Steven Truppe wrote: Hi all, i've compiled python3.5

Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
Hi all, i've compiled python3.5 and all went fine, i find ./python and it works, most of the make test stuff is working my only problem is that i'm not able to find libpython.so am i missing somehting ? Thianks in advance -- https://mail.python.org/mailman/listinfo/python-list

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-16 Thread asimkostas
Τη Τρίτη, 14 Ιουνίου 2016 - 3:36:23 μ.μ. UTC+3, ο χρήστης Pavel S έγραψε: > Have you considered to use rather WSGI-based solution? (for Apache Httpd is > mod_wsgi). Mod_python is totally obsolete. Regarding my blog post, i would like to inform you that someone helped me to overcome this error bu

mod_python compilation error

2016-06-16 Thread asimkon
Regarding my blog post , i would like to inform you that someone helped me to overcome this error but i got another one that i do not know it's meaning: error: [Errno 22] invalid mode ('wb') or filename: "dist\\mod_python-'{' \x9b\x9 c\xa4 \x9

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Pavel S
Have you considered to use rather WSGI-based solution? (for Apache Httpd is mod_wsgi). Mod_python is totally obsolete. -- https://mail.python.org/mailman/listinfo/python-list

mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread asimkon
I would like to ask you a technical question regarding python module compilation for python 2.7.1. I want to compile mod_python <https://app.box.com/s/orsffo3t4g6h9ftkq6p1>library for Apache 2.2 and py2.7 <https://www.python.org/downloads/> on Win32 in order to use it for psp - py sc

Compilation of Python 3.5.1 fails on Solaris 8 sparc

2016-02-19 Thread bthk55
When I try to compile the python from source on Solaris 8. I getting the following error """ Modules/_localemodule.o: In function PyIntl_gettext': Modules/_localemodule.o(.text+0xb60): undefined reference to libintl_gettext' Modules/_localemodule.o: In function PyIntl_dgettext': Modules/_l

Compilation of Python 3.5.1 fails on Solaris 8 sparc

2016-02-19 Thread bthk55
When I try to compile the python from source on Solaris 8. I getting the following error """ Modules/_localemodule.o: In function PyIntl_gettext': Modules/_localemodule.o(.text+0xb60): undefined reference to libintl_gettext' Modules/_localemodule.o: In function PyIntl_dgettext': Modules/_loc

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 3:00 PM, Sayth Renshaw wrote: > This is an exert > > DevKit Overview > The DevKit is a toolkit that makes it easy to build and use native C/C++ > extensions such as RDiscount and RedCloth for Ruby on Windows. > > Because on Windows with python libraries like lxml will fail

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
This is an exert DevKit Overview The DevKit is a toolkit that makes it easy to build and use native C/C++ extensions such as RDiscount and RedCloth for Ruby on Windows. Because on Windows with python libraries like lxml will fail with a vcvarsall error based on different c++ compilers. Sayth

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 11:33 AM, Sayth Renshaw wrote: > I was wondering if there is a reason that we on windows with python do not > have a version of Ruby devkit for python. > Many of us here don't use Ruby. Can you elaborate on what "devkit" does, please? ChrisA -- https://mail.python.org/ma

Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
ssion http://stackoverflow.com/a/13445719/461887 regarding vcvarsall and related python packaging queries. I know it wouldn't solve all pain points as I don't believe(could be wrong here) it would be unable to include Atlas compilation for some scientific libraries but it would be able

Re: Just compilation

2014-02-04 Thread Cameron Simpson
On 04Feb2014 00:58, Igor Korot wrote: > I'm trying to incorporate the path in > http://sourceforge.net/p/mysql-python/bugs/325/. > I already modified the source code and now what I need is to produce > the pyc code. > > Running "python --help" I don't see an option to just compile the > source in

Just compilation

2014-02-04 Thread Igor Korot
Hi, ALL, I'm trying to incorporate the path in http://sourceforge.net/p/mysql-python/bugs/325/. I already modified the source code and now what I need is to produce the pyc code. Running "python --help" I don't see an option to just compile the source into the bytecode. So how do I produce the co

Re: python 6 compilation failure on RHEL

2012-08-25 Thread Anssi Saari
Cameron Simpson writes: > My personal habit to to build with (adjust to match): > > --prefix=/usr/local/python-2.6.4 > > and put some symlinks in /usr/local/bin afterwards (python2.6, etc). There's actually a program for that, it's called stow. -- http://mail.python.org/mailman/listinfo/pytho

Re: python 6 compilation failure on RHEL

2012-08-21 Thread Jerry Hill
On Tue, Aug 21, 2012 at 12:34 AM, John Nagle wrote: > After a thread of clueless replies, it's clear that nobody > responding actually read the build log. Here's the problem: The very first reply, Emile's, pointed out that these were optional modules, and that python did, in fact build succe

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Emile van Sebille
On 8/20/2012 9:34 PM John Nagle said... After a thread of clueless replies, s/clueless/unread Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Peter Otten
John Nagle wrote: > On 8/20/2012 2:50 PM, Emile van Sebille wrote: >> On 8/20/2012 1:55 PM Walter Hurry said... >>> On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: >>> Package dependencies. If the OP intends to install a package that doesn't support other than 2.6, you inst

Re: python 6 compilation failure on RHEL

2012-08-20 Thread John Nagle
On 8/20/2012 2:50 PM, Emile van Sebille wrote: > On 8/20/2012 1:55 PM Walter Hurry said... >> On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: >> >>> Package dependencies. If the OP intends to install a package that >>> doesn't support other than 2.6, you install 2.6. >> >> It would be

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Dan Stromberg
On Mon, Aug 20, 2012 at 10:25 PM, Cameron Simpson wrote: > I was going to chime in with this anyway had the thread said nothing; I > strongly prefer to specify --prefix explicitly with configure. > > My personal habit to to build with (adjust to match): > > --prefix=/usr/local/python-2.6.4 > >

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Cameron Simpson
On 20Aug2012 12:19, Emile van Sebille wrote: | On 8/20/2012 11:37 AM Walter Hurry said... | > On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote: | >> On 8/20/2012 10:20 AM Walter Hurry said... | >>> I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP | >>> should stick w

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Emile van Sebille
On 8/20/2012 1:55 PM Walter Hurry said... On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: Package dependencies. If the OP intends to install a package that doesn't support other than 2.6, you install 2.6. It would be a pretty poor third party package which specified Python 2.6 e

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: > Package dependencies. If the OP intends to install a package that > doesn't support other than 2.6, you install 2.6. It would be a pretty poor third party package which specified Python 2.6 exactly, rather than (say) "Python 2.6 or

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Emile van Sebille
On 8/20/2012 11:37 AM Walter Hurry said... On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote: On 8/20/2012 10:20 AM Walter Hurry said... I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP should stick with that unless there is a pressing reason. Hence, the 2.6 ins

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote: > On 8/20/2012 10:20 AM Walter Hurry said... >> On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: > > > >>> >Do you really need to compile python2.6? RHEL has packages for >>> >python, >>> >and it's better > > s/better/sometimes e

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Emile van Sebille
On 8/20/2012 10:20 AM Walter Hurry said... On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: >Do you really need to compile python2.6? RHEL has packages for python, >and it's better s/better/sometimes easier > to use pre-compiled packages rather than compile them yourself. I concu

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Walter Hurry
11:41:38 >> EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) >> >> >> But, python compilation is not successfully done and showing a failure >> log. Below is the capture of the same. Please see failure log shown >> in the bottom of this mail. >> How to s

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Kwpolska
On Mon, Aug 20, 2012 at 3:31 PM, Ganesh Reddy K wrote: > Hi All, > > We are trying python 2.6 installation on an RHEL PC , > > whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 > EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) > > > But, python

Re: python 6 compilation failure on RHEL

2012-08-20 Thread Emile van Sebille
On 8/20/2012 6:31 AM Ganesh Reddy K said... But, python compilation is not successfully done and showing a failure log. Below is the capture of the same. Please see failure log shown in the bottom of this mail. How to solve the failure modules mentioned in the log ( bsddb185, dl , imageop

python 6 compilation failure on RHEL

2012-08-20 Thread Ganesh Reddy K
Hi All, We are trying python 2.6 installation on an RHEL PC , whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) But, python compilation is not successfully done and showing a failure log. Below is the capture of the sa

Re: regexp compilation error

2011-10-11 Thread Ovidiu Deac
Thanks for the answer. I will give a try to pypy regex. On Fri, Sep 30, 2011 at 4:56 PM, Vlastimil Brom wrote: > 2011/9/30 Ovidiu Deac : >> This is only part of a regex taken from an old perl application which >> we are trying to understand/port to our new Python implementation. >> >> The origina

Re: regexp compilation error

2011-09-30 Thread Vlastimil Brom
2011/9/30 Ovidiu Deac : > This is only part of a regex taken from an old perl application which > we are trying to understand/port to our new Python implementation. > > The original regex was considerably more complex and it didn't compile > in python so I removed all the parts I could in order to

Re: regexp compilation error

2011-09-30 Thread Hans Mulder
On 30/09/11 11:10:48, Ovidiu Deac wrote: I have the following regexp which fails to compile. Can somebody explain why? re.compile(r"""^(?: [^y]* )*""", re.X) [...] sre_constants.error: nothing to repeat Is this a bug or a feature? A feature: the message explains why this pattern is not all

Re: regexp compilation error

2011-09-30 Thread Steven D'Aprano
Ovidiu Deac wrote: re.compile(r"""^(?: [^y]* )*""", re.X) > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.6/re.py", line 190, in compile > return _compile(pattern, flags) > File "/usr/lib/python2.6/re.py", line 245, in _compile > raise error,

Re: regexp compilation error

2011-09-30 Thread Ovidiu Deac
This is only part of a regex taken from an old perl application which we are trying to understand/port to our new Python implementation. The original regex was considerably more complex and it didn't compile in python so I removed all the parts I could in order to isolate the problem such that I c

Re: regexp compilation error

2011-09-30 Thread Chris Angelico
On Fri, Sep 30, 2011 at 7:26 PM, Ovidiu Deac wrote: > $ python --version > Python 2.6.6 Ah, I think I was misinterpreting the traceback. You do actually have a useful message there; it's the same error that my Py3.2 produced: sre_constants.error: nothing to repeat I'm not sure what your regex i

Re: regexp compilation error

2011-09-30 Thread Ovidiu Deac
$ python --version Python 2.6.6 On Fri, Sep 30, 2011 at 12:18 PM, Chris Angelico wrote: > On Fri, Sep 30, 2011 at 7:10 PM, Ovidiu Deac wrote: >> I have the following regexp which fails to compile. Can somebody explain why? >> > re.compile(r"""^(?: [^y]* )*""", re.X) >> Traceback (most recen

Re: regexp compilation error

2011-09-30 Thread Chris Angelico
On Fri, Sep 30, 2011 at 7:10 PM, Ovidiu Deac wrote: > I have the following regexp which fails to compile. Can somebody explain why? > re.compile(r"""^(?: [^y]* )*""", re.X) > Traceback (most recent call last): >  File "", line 1, in >  File "/usr/lib/python2.6/re.py", line 190, in compile >

regexp compilation error

2011-09-30 Thread Ovidiu Deac
I have the following regexp which fails to compile. Can somebody explain why? >>> re.compile(r"""^(?: [^y]* )*""", re.X) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib/python2.6/

Sphinx-1.0b compilation for python3.1

2010-07-01 Thread Richard Mathar
I am trying to install Sphinx-1.0b under a Python3 environment. Does anyone have experience with that task? cd *1.0b2 python3 setup.py build File "setup.py", line 50 print 'ERROR: Sphinx requires at least Python 2.4 to run.' So ../ 2to3 -w Sphinx-1.0b2 ... RefactoringTool: Warnings/mes

Re: cpython compilation parameter

2009-10-14 Thread Jorgen Grahn
On Thu, 2009-10-08, Diez B. Roggisch wrote: > cEd wrote: > >> Hello, >> >> I'm wondering how to compile python to get good performance. >> Because when I compare this ugly code which find prime number: ... >> between : >> - the python distributed with my ubuntu >> #time python prime_number.py

Re: cpython compilation parameter

2009-10-08 Thread Diez B. Roggisch
cEd wrote: > Hello, > > I'm wondering how to compile python to get good performance. > Because when I compare this ugly code which find prime number: > > # prime_number.py > start=3 > for is_first in range(start): > found = 0 > is_first+=1 > for i in range (2, is_first): > if not (is_fi

cpython compilation parameter

2009-10-08 Thread cEd
Hello, I'm wondering how to compile python to get good performance. Because when I compare this ugly code which find prime number: # prime_number.py start=3 for is_first in range(start): found = 0 is_first+=1 for i in range (2, is_first): if not (is_first%(i)): found = 1 break if

Re: Compilation problem with Python < 2.6 and db >= 4.7

2009-07-20 Thread kiorky
Martin v. Löwis a écrit : >> Is there a way to make the bsddb module compile against db>=4.7 for python < >> 2.6 >> (2.4.6, 2.5.4)? > > I don't think so, no. > >> I didn't find something on it. > > If you don't want to use pybsddb either, for fear of incompatible API, > your only choice is to p

Re: Compilation problem with Python < 2.6 and db >= 4.7

2009-07-20 Thread Martin v. Löwis
> Is there a way to make the bsddb module compile against db>=4.7 for python < > 2.6 > (2.4.6, 2.5.4)? I don't think so, no. > I didn't find something on it. If you don't want to use pybsddb either, for fear of incompatible API, your only choice is to port _bsddb.c to the newer db versions. BSD

Compilation problem with Python < 2.6 and db >= 4.7

2009-07-20 Thread kiorky
Is there a way to make the bsddb module compile against db>=4.7 for python < 2.6 (2.4.6, 2.5.4)? A patch ? A tip ? For the moment, i have a known failure as: gcc -pthread -fno-strict-aliasing -DNDEBUG -I/usr/home/kiorky/minitage/dependencies/readline-5.2/parts/part/include -I/usr/home/kiorky/minit

Re: compilation problem of python on AIX 6.1

2009-07-14 Thread Aahz
aming "_tkinter" since importing it failed: 0509-022 >Cannot load module build/lib.aix-6.1-2.5. > 0509-026 System error: A file or directory in the path name does not >exist. This looks like a generic AIX compilation error finding system libraries; you probably will ge

compilation problem of python on AIX 6.1

2009-07-12 Thread Amit
Hello I want to intsall python on my AIX 6.1 Box. I couldn't get any rpm for python 2.5.x for AIX 6.1. THen I decided to compile python 2.5.4 on my AIX box. I downloaded the python source code from www.python.org and tried to compile on my AIX both using gcc. step 1 ./configure --with-gcc config

Re: Cross platform compilation?

2009-02-04 Thread David Boddie
gt; More generally, it seems like this would be something that lots of > people would want to do. I'm surprised there isn't support for it built > into the distributed version of Python, without having to hack all the > setup files...? I suppose people don't explicitly co

Re: Cross platform compilation?

2009-02-04 Thread Nick Craig-Wood
x27;m surprised there isn't support for it built > > into the distributed version of Python, without having to hack all the > > setup files...? > > I'm sorry to inform you that Python doesn't support cross platform > compilation. Python eats its own dog food an

Re: Cross platform compilation?

2009-02-03 Thread Miki
On Feb 2, 6:59 pm, "John Harper" wrote: > I am trying to build Python to use in an embedded system which uses a > ppc_440 CPU. The only information I've found is something written by > Klaus Reimer a few years ago, which was based on Python 2.2. So far I > seem to have successfully built Python it

Re: Cross platform compilation?

2009-02-03 Thread Christian Heimes
o hack all the > setup files...? I'm sorry to inform you that Python doesn't support cross platform compilation. Python eats its own dog food and uses Python to compile optional extension modules. Some guys were working on a patch. You may find something in the bug tracker at http://bugs.python.org Christian -- http://mail.python.org/mailman/listinfo/python-list

Cross platform compilation?

2009-02-03 Thread John Harper
I am trying to build Python to use in an embedded system which uses a ppc_440 CPU. The only information I've found is something written by Klaus Reimer a few years ago, which was based on Python 2.2. So far I seem to have successfully built Python itself, but building the extensions fails miser

Re: python 2.5.2 or Python 2.6 compilation problem on AIX 5.3

2008-12-01 Thread [EMAIL PROTECTED]
On Dec 1, 1:06 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello: > > I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am > > getting following error. (I also tried Python 2.6 with same error) > > > creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Pyt

Re: python 2.5.2 or Python 2.6 compilation problem on AIX 5.3

2008-12-01 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Hello: I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am getting following error. (I also tried Python 2.6 with same error) creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/ Modules gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O

python 2.5.2 or Python 2.6 compilation problem on AIX 5.3

2008-12-01 Thread [EMAIL PROTECTED]
Hello: I am trying to compile Python 2.5.2 on AIX 5.3 with gcc 4.2.3. I am getting following error. (I also tried Python 2.6 with same error) creating build/temp.aix-5.3-2.5/share/tmhsdsd2/tmp/Python-2.5.2/ Modules gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototype

Re: Python26 compilation problem

2008-10-23 Thread M.-A. Lemburg
On 2008-10-23 18:32, Mathew wrote: > I am getting > Modules/config.c:39: error: expected declaration specifiers or '...' > before numeric constant > > because of > extern void initsocket(2)(void); > > in config.c > > What is this? How do I fix it? Without more information on platform, compiler,

Python26 compilation problem

2008-10-23 Thread Mathew
I am getting Modules/config.c:39: error: expected declaration specifiers or '...' before numeric constant because of extern void initsocket(2)(void); in config.c What is this? How do I fix it? Mathew -- http://mail.python.org/mailman/listinfo/python-list

Re: cross-compilation

2008-08-18 Thread Roumen Petrov
Martin v. Löwis wrote: What about to start to resolve issues step by step ? The first step surely should be to get the autoconf issue resolved. I don't think distutils cross-compilation is going to work, instead, people wishing to cross-compile should edit Modules/Setup. Regards, M

Re: cross-compilation

2008-08-07 Thread Martin v. Löwis
> What about to start to resolve issues step by step ? The first step surely should be to get the autoconf issue resolved. I don't think distutils cross-compilation is going to work, instead, people wishing to cross-compile should edit Modules/Setup. Regards, Martin -- http://mail.py

cross-compilation

2008-08-06 Thread Roumen Petrov
Hi list members, It seems to me that this is discussed many times in the past but without progress. As I understand in general there is no objections and preferred cross-compilation has to be based on distutils (scons was rejected). So I would like to cross-compile from linux(build system

RE: recommended gcc versions for python2.5 compilation on Solarissparc/x86, AIX, Linux

2008-07-11 Thread YIN Ming
python2.5 compilation on Solarissparc/x86, AIX, Linux -On [20080711 06:18], YIN Ming ([EMAIL PROTECTED]) wrote: >2. use new version of gcc (rather than odd version) See http://www.in-nomine.org/2008/04/11/python-26a2-execution-times-with-various-compilers/ that I wrote a while

Re: recommended gcc versions for python2.5 compilation on Solaris sparc/x86, AIX, Linux

2008-07-11 Thread Jeroen Ruigrok van der Werven
-On [20080711 06:18], YIN Ming ([EMAIL PROTECTED]) wrote: >2. use new version of gcc (rather than odd version) See http://www.in-nomine.org/2008/04/11/python-26a2-execution-times-with-various-compilers/ that I wrote a while ago. Basically for Python GCC 3.4.6 outperformed the newer GCCs. So

recommended gcc versions for python2.5 compilation on Solaris sparc/x86, AIX, Linux

2008-07-10 Thread YIN Ming
Dear All, We are going to compile python2.5.1 with gcc on various platforms, including Solaris8(sparc), Solaris10(x86), AIX and Linux. Just want to check if there are recommended gcc versions for these platforms. We aim to: 1. use a single version of gcc for all platforms 2. us

Re: python compilation on macosx with icc

2008-06-13 Thread Martin v. Löwis
> checking for wchar.h... yes > checking for wchar_t... yes > checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t) > > what can I do ? Read config.log. If that doesn't help, use gcc. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

python compilation on macosx with icc

2008-06-13 Thread Mathieu Prevot
Hi, when I run configure, it fails at: checking for wchar.h... yes checking for wchar_t... yes checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t) what can I do ? Thanks, Mathieu -- http://mail.python.org/mailman/listinfo/python-list

Compilation problem of Python2.5.1 on AIX5.2 (with --enable-shared option)

2008-04-16 Thread YIN Ming
is a statically-linked binary. (The detail is shown below). The detail of my compilation 1. CC="cc_r" ./configure --prefix=/src/new/python2/install --without-gcc --disable-ipv6 --enable-shared 2. make CC="cc_r" OPT="-O -qmaxmem=4000" An er

Re: [SQL] compiling plpython compilation error

2008-03-03 Thread Tom Lane
Gerardo Herzig <[EMAIL PROTECTED]> writes: > Hi all. Im having a hard time trying to compile the plpython package. > This is the error make gives me: > /usr/lib/python2.5/config/libpython2.5.a(abstract.o): relocation > R_X86_64_32 against `a local symbol' can not be used when making a > shared o

compiling plpython compilation error

2008-03-03 Thread Gerardo Herzig
Hi all. Im having a hard time trying to compile the plpython package. This is the error make gives me: [EMAIL PROTECTED]:/usr/local/src/postgresql-8.2.5/src/pl/plpython> make gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-alias

Solaris 64 bit compilation

2007-10-25 Thread Srigiri, Joel
Hi Holden, I am having problems compiling some custom apps. Can you send me the configure.in where you added the lines. Since then, I have hacked the configure.in and added the option --enable-solaris-64bit and regenerated the configure script. Now, good news, it all builds fine. Except I am

Re: Python compilation ??

2007-07-03 Thread VSmirk
On Jul 3, 10:42 pm, Frank Swarbrick <[EMAIL PROTECTED]> wrote: > John Nagle wrote: > > Evan Klitzke wrote: > >> On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: > > >>> Is python a compiler language or interpreted language. If it is > >>> interpreter > >>> , then why do we have to compile it? > >

Re: Python compilation ??

2007-07-03 Thread Frank Swarbrick
John Nagle wrote: > Evan Klitzke wrote: >> On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: >> >>> Is python a compiler language or interpreted language. If it is >>> interpreter >>> , then why do we have to compile it? >> > Iron Python compiles to Microsoft's byte code as used by their > ".NE

Re: Python compilation ??

2007-07-03 Thread Evan Klitzke
On 7/3/07, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Evan Klitzke a écrit : > > On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: > >> Is python a compiler language or interpreted language. If it is > >> interpreter > >> , then why do we have to compile it? > > > > It's an interpreted langu

Re: Python compilation ??

2007-07-03 Thread Bruno Desthuilliers
Evan Klitzke a écrit : > On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: >> Is python a compiler language or interpreted language. If it is >> interpreter >> , then why do we have to compile it? > > It's an interpreted language. It is compiled into bytecode By this definition, Java is an int

Re: Python compilation ??

2007-07-03 Thread Duncan Booth
Steve Holden <[EMAIL PROTECTED]> wrote: > Absolutely. I should, of course, have said that only imported modules > have the results of the compilation stored as a .pyc file. > > One must presume this is to save the file write time during development > when the program is al

Re: Python compilation ??

2007-07-02 Thread Cathy Murphy
Ahh!! lots of thoughts!! Thanks guys!! -- Cathy www.nachofoto.com On 7/2/07, John Nagle <[EMAIL PROTECTED]> wrote: Evan Klitzke wrote: > On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: > >> Is python a compiler language or interpreted language. If it is >> interpreter >> , then why do we h

Re: Python compilation ??

2007-07-02 Thread John Nagle
Evan Klitzke wrote: > On 7/2/07, Cathy Murphy <[EMAIL PROTECTED]> wrote: > >> Is python a compiler language or interpreted language. If it is >> interpreter >> , then why do we have to compile it? > > > It's an interpreted language. It is compiled into bytecode (not > machine code) the first ti

  1   2   >