Re: Compiling python on windows with vs

2023-06-15 Thread Eryk Sun via Python-list
On 6/15/23, Thomas Schweikle via Python-list wrote: > > No. This flag is not inherited. Someone has to set it for created > directories. It is easy to confirm: take a directory not under MSYS or > cygwin control (because it is mounted by MSYS or cygwin), set the flag, > then create directories. Th

Re: Compiling python on windows with vs

2023-06-15 Thread Thomas Schweikle via Python-list
Am Do., 15.Juni.2023 um 16:28:21 schrieb Eryk Sun: On 6/15/23, Thomas Schweikle via Python-list wrote: In this case: not sure what is going on. Possibly you have a setting configured that affects the behavior of Git via the MinGW-w64 runtime, such that calling mkdir() ends up calling NtSet

Re: Compiling python on windows with vs

2023-06-15 Thread Thomas Schweikle via Python-list
Am Do., 15.Juni.2023 um 15:44:42 schrieb Inada Naoki: Then, git doesn't enable Windows NTFS case sensitivity. You enabled NTFS case sensitivity on "C:\Users\user\K". And Windows enabled case sensitivity for all new directories under the directory. No. This flag is not inherited. Someone has t

Re: Compiling python on windows with vs

2023-06-15 Thread Eryk Sun via Python-list
On 6/15/23, Thomas Schweikle via Python-list wrote: > > In this case: not sure what is going on. Possibly you have a setting configured that affects the behavior of Git via the MinGW-w64 runtime, such that calling mkdir() ends up calling NtSetInformationFile() to set the FileCaseSensitiveInformat

Re: Compiling python on windows with vs

2023-06-15 Thread Inada Naoki via Python-list
Then, git doesn't enable Windows NTFS case sensitivity. You enabled NTFS case sensitivity on "C:\Users\user\K". And Windows enabled case sensitivity for all new directories under the directory. Since it is not default and minor setting, it is not a bug that current Python doesn't support building

Re: Compiling python on windows with vs

2023-06-15 Thread Thomas Schweikle via Python-list
Am Mi., 14.Juni.2023 um 15:10:50 schrieb Eryk Sun: On 6/14/23, Inada Naoki via Python-list wrote: Since Git enables Windows NTFS case sensitivity while checking out sources I didn't know that. Would you give us a link to this feature? As far as I know, `git config core.ignorecase` doesn't m

Re: Compiling python on windows with vs

2023-06-14 Thread Eryk Sun via Python-list
On 6/14/23, Inada Naoki via Python-list wrote: >> Since Git enables Windows NTFS case sensitivity while checking out sources > > I didn't know that. Would you give us a link to this feature? > As far as I know, `git config core.ignorecase` doesn't mean NTFS case > sensitive. If a repo is cloned i

Re: Compiling python on windows with vs

2023-06-13 Thread Inada Naoki via Python-list
> Since Git enables Windows NTFS case sensitivity while checking out sources I didn't know that. Would you give us a link to this feature? As far as I know, `git config core.ignorecase` doesn't mean NTFS case sensitive. On Wed, Jun 14, 2023 at 1:57 AM Thomas Schweikle via Python-list < python-lis

Re: Compiling python on windows with vs

2023-06-13 Thread Thomas Schweikle via Python-list
it is found, but then fails to find "Modules". Looks like it awaits, compiling in Windows an filesystem only case aware, not case sensitive -- I'm assuming this a bug now. Building within cygwin (or MSYS, Ubuntu) this works as expected. But there it does not search for "modul

Re: Compiling python on windows with vs

2023-06-13 Thread Eryk Sun via Python-list
On 6/13/23, Thomas Schweikle via Python-list wrote: > > Since Git enables Windows NTFS case sensitivity while checking out > sources ... is it a bug or a "feature"? And: is there a simple AFAIK the Windows version of Git (you're not using the Linux version of Git via WSL, right?) does not automat

RE: Compiling python on windows with vs

2023-06-13 Thread Jim Schwartz via Python-list
One expert told me to do the following when compiling via cython and cl: cython -3 --embed -o c_file_namepython_file_name Then, assuming python is installed in your apps directory and not your program files directory: set "PYTHON_DIR=%LocalAppData%\Programs\Python\Python311" o

Re: Compiling python on windows with vs

2023-06-13 Thread Mats Wichmann via Python-list
in python and cl from visual studio, but I haven’t tried visual studio alone. Same problem at the same place: directory "../modules/..." not found, Renaming it from "Modules" to "modules" it is found, but then fails to find "Modules". Looks like it aw

Re: Compiling python on windows with vs

2023-06-13 Thread Thomas Schweikle via Python-list
visual studio alone. Same problem at the same place: directory "../modules/..." not found, Renaming it from "Modules" to "modules" it is found, but then fails to find "Modules". Looks like it awaits, compiling in Windows an filesystem only case aware, n

Re: Compiling python on windows with vs

2023-06-13 Thread Jim Schwartz via Python-list
What version of visual studio are you using? What version of python? I’ve had success with using the cython package in python and cl from visual studio, but I haven’t tried visual studio alone. Sent from my iPhone > On Jun 13, 2023, at 11:59 AM, Thomas Schweikle via Python-list > wrote: >

Compiling python on windows with vs

2023-06-13 Thread Thomas Schweikle via Python-list
Hi! Trying to compile python on windows leads to following error: _testimportmultiple.vcxproj -> C:\Users\sct-muc\Documents\Projekte\cpython\PCbuild\amd64\_testimportmultiple.pyd _testmultiphase.c Bibliothek "C:\Users\sct-muc\Documents\Projekte\cpython\PCbuild\amd64\_testmultiphase.l

Re: SyntaxError: multiple statements found while compiling a single statement

2022-08-07 Thread Joe Pfeiffer
Sohail Ahmad writes: > kindly please help me about issues > SyntaxError: multiple statements found while compiling a single statement > how to solve this issues Please post the code that got the error. Preferably several lines before the actual error, and the line with the err

Re: Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows

2022-03-21 Thread Christian Gollwitzer
Am 19.03.22 um 01:08 schrieb Ankit Agarwal: This is a very specific question. I am trying to figure out whether or not I can use pre-built python libraries and headers on Windows in a MinGW build on Linux. With the mingw cross-compiler on Linux that should be possible, however I guess it might

Re: Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows

2022-03-19 Thread Eryk Sun
On 3/18/22, Ankit Agarwal wrote: > Hi, > > This is a very specific question. I am trying to figure out whether or not > I can use pre-built python libraries and headers on Windows in a MinGW > build on Linux. Essentially I have some python and C++ code which interface > via cython and pybind. I wa

Re: Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows

2022-03-19 Thread Dan Stromberg
On Fri, Mar 18, 2022 at 8:03 PM Ankit Agarwal wrote: > Hi, > > This is a very specific question. I am trying to figure out whether or not > I can use pre-built python libraries and headers on Windows in a MinGW > build on Linux. Essentially I have some python and C++ code which interface > via cy

Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows

2022-03-18 Thread Ankit Agarwal
Hi, This is a very specific question. I am trying to figure out whether or not I can use pre-built python libraries and headers on Windows in a MinGW build on Linux. Essentially I have some python and C++ code which interface via cython and pybind. I want to build a self contained C++ binary for W

Re: compiling 3.7.0 from source with custom libffi path

2020-05-05 Thread yuri . yudhaswana
Hi, I dont have "lib64" in libffi, are you sure it is "lib64" or just "lib"? On Monday, 1 July 2019 21:32:46 UTC+9, tom...@gmail.com wrote: > On Monday, September 24, 2018 at 11:48:59 AM UTC+3, Fetchinson . wrote: > > I'm trying to compile python 3.7.0 from source with a custom libffi > > path an

Re: compiling 3.7.0 from source with custom libffi path

2019-07-01 Thread tomerv
On Monday, September 24, 2018 at 11:48:59 AM UTC+3, Fetchinson . wrote: > I'm trying to compile python 3.7.0 from source with a custom libffi > path and the compiler/linker doesn't seem to pick up the right > version. The system libffi doesn't have the development files so I've > installed the late

Re: compiling 3.7.0 from source with custom libffi path

2019-05-29 Thread abhinav1205
Exactly same issue.. ctypes wont build .. pkg-config finds libffi, headers are located in configure and still INFO: Could not locate ffi libs and/or headers python is getting really annoying to install .. not everyone has root privileges to install system-wide dependencies. On Tuesday, Septe

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 16:30, Fetchinson . via Python-list wrote: >> [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile >> LIBFFI_INCLUDEDIR= /opt/custom/lib/libffi-3.2.1/include >> >> So I'd say everything should work but it doesn't, I reran ./configure >> and also make o

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 16:30, Fetchinson . via Python-list wrote: > [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile > LIBFFI_INCLUDEDIR= /opt/custom/lib/libffi-3.2.1/include > > So I'd say everything should work but it doesn't, I reran ./configure > and also make of course. I'm confused. ./configure succ

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 14:14, Fetchinson . via Python-list wrote: I'm trying to compile python 3.7.0 from source with a custom libffi path and the compiler/linker doesn't seem to pick up the right version. The system libffi doesn't have the development fil

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 14:14, Fetchinson . via Python-list wrote: >>> I'm trying to compile python 3.7.0 from source with a custom libffi >>> path and the compiler/linker doesn't seem to pick up the right >>> version. The system libffi doesn't have the development files so I've >>> installed the latest libf

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
>> I'm trying to compile python 3.7.0 from source with a custom libffi >> path and the compiler/linker doesn't seem to pick up the right >> version. The system libffi doesn't have the development files so I've >> installed the latest libffi (also from source) to /opt/custom but >> still I get >> >>

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 10:48, Fetchinson . via Python-list wrote: > I'm trying to compile python 3.7.0 from source with a custom libffi > path and the compiler/linker doesn't seem to pick up the right > version. The system libffi doesn't have the development files so I've > installed the latest libffi (also

compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
I'm trying to compile python 3.7.0 from source with a custom libffi path and the compiler/linker doesn't seem to pick up the right version. The system libffi doesn't have the development files so I've installed the latest libffi (also from source) to /opt/custom but still I get INFO: Could not loc

Re: problem in compiling C API in mingw

2018-05-08 Thread m.overmeyer--- via Python-list
On Tuesday, 26 July 2011 23:53:36 UTC, llw...@gmail.com wrote: > Hi all again, > I wonder if so far only Python 2.5.x support c extension. I try the > MSVC 2010 and 2008, also try mingw (gcc 4.x.x) and swig. But even I try > the simplest example, it said > > example_wrap.o:example_wrap.c:(.te

Compiling Python for iOS 11

2017-09-24 Thread Patrick Stinson
Has anyone successfully compiled python for iOS 11? I tried with 3.5.2 and 3.6.2 and got the following errors: turin:Python-3.6.2 patrick$ make Makefile:9845: warning: overriding commands for target `.obj/_pickle.o' Makefile:8855: warning: ignoring old commands for target `.obj/_pickle.o' /Appli

Re: SyntaxError: multiple statements found while compiling a single statement

2017-09-24 Thread khushi27gkcse
ser did something > if event.type == pygame.QUIT: # If user clicked close > done = True # Flag that we are done so we exit this loop > > SyntaxError: multiple statements found while compiling a single statement > > Thanks ... -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Pavol Lisy
On 7/10/17, Nigel Palmer wrote: > Hi > > I am trying to compile Python 3.6.1 on macOS 10.12.5 with xcode 8.8.3 using > the instructions at > https://docs.python.org/devguide/setup.html#build-dependencies but I am > getting the error > > ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ >

RE: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Nigel Palmer
@python.org Subject: Re: Compiling Python 3.6.1 on macOS 10.12.5 > Killed: 9 It looks like not segmentation fault. Maybe, RAM shortage? INADA Naoki On Mon, Jul 10, 2017 at 10:24 PM, Nigel Palmer wrote: > Hi > > I am trying to compile Python 3.6.1 on macOS 10.12.5 with xcode 8.8.3

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Viktor Hagström
>Why are you trying to compile Python manually? You should use Homebrew to >install Python in 99% of cases. (The package is python3) I'm not the person you answered, but I can explain why I do things that are not "optimal" or "easy" or "best". I am interested, I want to learn something, I think

RE: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Nigel Palmer
From: Chris Warrick [mailto:kwpol...@gmail.com] Sent: 11 July 2017 07:48 To: Nigel Palmer Cc: python-list@python.org Subject: Re: Compiling Python 3.6.1 on macOS 10.12.5 Why are you trying to compile Python manually? You should use Homebrew to install Python in 99% of cases. (The package is

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Viktor Hagström
>Why are you trying to compile Python manually? You should use Homebrew to >install Python in 99% of cases. (The package is python3) I'm not the person you answered, but I can explain why I do things that are not "optimal" or "easy" or "best". I am interested, I want to learn something, I think

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Viktor Hagström
>Why are you trying to compile Python manually? You should use Homebrew to >install Python in 99% of cases. (The package is python3) I'm not the person you answered, but I can explain why I do things that are not "optimal" or "easy" or "best". I am interested, I want to learn something, I think

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread Chris Warrick
Why are you trying to compile Python manually? You should use Homebrew to install Python in 99% of cases. (The package is python3) -- Chris Warrick -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread INADA Naoki
> Killed: 9 It looks like not segmentation fault. Maybe, RAM shortage? INADA Naoki On Mon, Jul 10, 2017 at 10:24 PM, Nigel Palmer wrote: > Hi > > I am trying to compile Python 3.6.1 on macOS 10.12.5 with xcode 8.8.3 using > the instructions at > https://docs.python.org/devguide/setup.html

Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread Nigel Palmer
Hi I am trying to compile Python 3.6.1 on macOS 10.12.5 with xcode 8.8.3 using the instructions at https://docs.python.org/devguide/setup.html#build-dependencies but I am getting the error ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \

Re: Using/compiling pyuno with Python 3.6

2017-03-28 Thread Jim
On 03/27/2017 11:41 PM, Deborah Swanson wrote: filtered wrote, on March 27, 2017 9:09 PM Sorry but all your answers are pointless. I clearly asked about compiling PyUno MYSELF with a self-compiled Python 3.6.1 installation. Is this so hard to understand? Why do you give unrelated comments to

RE: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Deborah Swanson
filtered wrote, on March 27, 2017 9:09 PM > > Sorry but all your answers are pointless. > > I clearly asked about compiling PyUno MYSELF with a > self-compiled Python 3.6.1 installation. Is this so hard to > understand? Why do you give unrelated comments to a clear > qu

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions?

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions?

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread filtered
Sorry but all your answers are pointless. I clearly asked about compiling PyUno MYSELF with a self-compiled Python 3.6.1 installation. Is this so hard to understand? Why do you give unrelated comments to a clear questions? Sometimes it is better to be quiet. -aj 2017-03-28 5:49 GMT+02:00

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 09:13 PM, Jim wrote: > I don't know if this is of any help but I am running Mint 18 with Python > 3.5 and I have a package installed called python3-uno which is described > as "Python-UNO bridge". Maybe CentOS has a similarly name package. You're right. In fact it looks like LibreO

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Jim
g/src/docx/uno.py", line 24, in import pyuno ImportError: dynamic module does not define module export function (PyInit_pyuno) Is there a straight forward way for compiling pyuno myself? I could not find any official documentation, links to various posts are older than 5 years... Pretty

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
gt; File "/home/ajung/src/docx/uno.py", line 24, in >import pyuno > ImportError: dynamic module does not define module export function > (PyInit_pyuno) > > Is there a straight forward way for compiling pyuno myself? I could not > find any official documentation,

RE: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Deborah Swanson
ot;, line 1, > in File "/home/ajung/src/docx/uno.py", line 24, in >import pyuno > ImportError: dynamic module does not define module export function > (PyInit_pyuno) > > Is there a straight forward way for compiling pyuno myself? I > could not find any official doc

Using/compiling pyuno with Python 3.6

2017-03-27 Thread filtered
es not define module export function (PyInit_pyuno) Is there a straight forward way for compiling pyuno myself? I could not find any official documentation, links to various posts are older than 5 years... Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling new Pythons on old Windows compilers

2017-03-12 Thread Michael Torrie
On 03/12/2017 09:26 PM, Michael Torrie wrote: > On 03/12/2017 02:45 PM, eryk sun wrote: >> On Sun, Mar 12, 2017 at 5:02 PM, Eric Frederich >> wrote: >>> Any idea why compatibility was dropped recently? There used to be a PC >>> directory with different VS directories in the source tree, now it is

Re: Compiling new Pythons on old Windows compilers

2017-03-12 Thread Michael Torrie
On 03/12/2017 02:45 PM, eryk sun wrote: > On Sun, Mar 12, 2017 at 5:02 PM, Eric Frederich > wrote: >> Any idea why compatibility was dropped recently? There used to be a PC >> directory with different VS directories in the source tree, now it isn't >> there any more. > > CPython 3.5+ uses the Un

Re: Compiling new Pythons on old Windows compilers

2017-03-12 Thread eryk sun
On Sun, Mar 12, 2017 at 5:02 PM, Eric Frederich wrote: > Any idea why compatibility was dropped recently? There used to be a PC > directory with different VS directories in the source tree, now it isn't > there any more. CPython 3.5+ uses the Universal CRT on Windows, which is a system component

Compiling new Pythons on old Windows compilers

2017-03-12 Thread Eric Frederich
There is a commercial application which allows customizations through a C API. There are 3 different releases of this application each compiled with different versions of Visual Studio, 2008, 2010, and 2012. I'd like to release a customization which embeds a Python interpreter, but I'd like to use

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Rustom Mody
On Sunday, October 9, 2016 at 12:12:06 PM UTC+5:30, Steve D'Aprano wrote: > On Sun, 9 Oct 2016 02:51 pm, Cai Gengyang wrote: > > > I defined both done and pygame in this piece of code, but now i get a new > > error that i have never seen before, an AttributeError > > AttributeError usually means

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Steve D'Aprano
On Sun, 9 Oct 2016 02:51 pm, Cai Gengyang wrote: > I defined both done and pygame in this piece of code, but now i get a new > error that i have never seen before, an AttributeError AttributeError usually means you have the wrong kind of object: py> mylist = {} # oops, a dict not a list py> myl

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Terry Reedy
On 10/8/2016 11:51 PM, Cai Gengyang wrote: pygame = True while not done: for event in pygame.event.get(): Traceback (most recent call last): File "", line 2, in for event in pygame.event.get(): AttributeError: 'bool' object has no attribute 'event' pygame == True and True ha

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Cai Gengyang
I defined both done and pygame in this piece of code, but now i get a new error that i have never seen before, an AttributeError >>> rect_x = 50 >>> rect_y = 50 >>> done = False >>> pygame = True >>> while not done: for event in pygame.event.get(): if event.type == pygame.QUI

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Steve D'Aprano
On Sun, 9 Oct 2016 01:51 pm, Cai Gengyang wrote: > This is my latest result : I copy and pasted one line at a time into the > IDLE and used ONLY the "enter-return" button to move on to the next line > and this time I didnt get an indentation error but instead a traceback > error: > Traceback (mos

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Cai Gengyang
This is my latest result : I copy and pasted one line at a time into the IDLE and used ONLY the "enter-return" button to move on to the next line and this time I didnt get an indentation error but instead a traceback error >>> rect_x = 50 >>> rect_y = 50 >>> while not done: for event in

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Gregory Ewing
Cai Gengyang wrote: Somehow it still doesnt work --- it keeps giving the syntaxerror, inconsistent use of tabs and indentation message EVEN though i use only the enter and space buttons and never touched the tab button a single time. There was another thread about this a short time ago. It turn

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Terry Reedy
55, 255) SyntaxError: multiple statements found while compiling a single statement Here you pasted multiple *statements* (on separate lines). This is a known difference between console and IDLE Shell. It is partly related to being line versus statement oriented, partly due to window past

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread breamoreboy
On Saturday, October 8, 2016 at 12:07:47 PM UTC+1, Rustom Mody wrote: > On Saturday, October 8, 2016 at 1:21:50 PM UTC+5:30, Cai Gengyang wrote: > > This is the result when I copy and paste it one line at a time : > > > > >>> rect_x = 50 > > >>> rect_y = 50 > > >>> while not done:

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Cai Gengyang
Somehow it still doesnt work --- it keeps giving the syntaxerror, inconsistent use of tabs and indentation message EVEN though i use only the enter and space buttons and never touched the tab button a single time. Im pretty sure there is something wrong with the program itself. Gonna download py

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Rustom Mody
On Saturday, October 8, 2016 at 1:21:50 PM UTC+5:30, Cai Gengyang wrote: > This is the result when I copy and paste it one line at a time : > > >>> rect_x = 50 > >>> rect_y = 50 > >>> while not done: > >>> > for event in ... Th

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Cai Gengyang
t; I don't normally use IDLE, and you shouldn't assume that everyone does. > *That* is the extra information we need to solve the problem: > > The IDLE interactive interpreter in Python 3 does not seem to allow you to > paste multiple lines at once. If you do, it highlights

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread Steve D'Aprano
SyntaxError: multiple statements found while compiling a single statement For example: Python 3.3.0rc3 (default, Sep 27 2012, 18:44:58) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux Type "copyright", "credits" or "license()" for more information. >>> #

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-07 Thread Cai Gengyang
> The only way I can reproduce the error message you give is by using the > compile() function: > > py> compile("a=1\nb=2", "", "single") > Traceback (most recent call last): > File "", line 1, in > File "", line 1 > a

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-07 Thread Steve D'Aprano
n File "", line 1 a=1 ^ SyntaxError: multiple statements found while compiling a single statement Notice how the compiler shows the offending line and puts a caret ^ at the end? Unless you show us what code actually causes this error message, I don't think it is poss

SyntaxError: multiple statements found while compiling a single statement

2016-10-07 Thread Cai Gengyang
at we are done so we exit this loop SyntaxError: multiple statements found while compiling a single statement Thanks ... -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help compiling Python-devel

2016-07-05 Thread Lawrence D’Oliveiro
On Wednesday, July 6, 2016 at 4:35:54 AM UTC+12, TM wrote: > > This option is not straight forward. There are too many dependencies. > Easier in Linux not so easy in AIX. POWER hardware? It might be easier and quicker to get Linux running on the machine, and figure it out there, than to try it u

Re: Need help compiling Python-devel

2016-07-05 Thread Michael Torrie
On 07/05/2016 10:35 AM, TM wrote: > This option is not straight forward. There are too many dependencies. > Easier in Linux not so easy in AIX. > > Is it possible to copy the python executable (ie the code below)? > # cp -p python python-devel What is this python-devel thing? You said you wanted

Re: Need help compiling Python-devel

2016-07-05 Thread TM
This option is not straight forward. There are too many dependencies. Easier in Linux not so easy in AIX. Is it possible to copy the python executable (ie the code below)? # cp -p python python-devel Thanks, Tony On Tue, Jul 5, 2016 at 12:12 PM, Dieter Maurer wrote: > TM wrote at 2016-7-5 11

Re: Need help compiling Python-devel

2016-07-05 Thread dieter
TM writes: > I have successfully compiled Python-2.7.12 on AIX 6.1 TL09, using steps > below. However I need the python-devel library/headers. How do I compile > Python, so that I can use this? The distinction between "python" and "python-devel" is not a Python notion but one of package manageme

Need help compiling Python-devel

2016-07-04 Thread TM
Hi, I have successfully compiled Python-2.7.12 on AIX 6.1 TL09, using steps below. However I need the python-devel library/headers. How do I compile Python, so that I can use this? # ./configure --with-gcc="gcc" --with-cxx="gcc" --disable-ipv6 # make Any help is greatly appreciated. Thanks, Ton

Re: Question on compiling on linux

2016-06-28 Thread alister
On Mon, 27 Jun 2016 21:39:42 -0600, Michael Torrie wrote: > On 06/27/2016 08:28 PM, Steven D'Aprano wrote: >> On Tue, 28 Jun 2016 10:01 am, Dennis Lee Bieber wrote: >> >>> The Outlook style works well in a business environment where the >>> recipient is likely the original sender of the quoted te

Re: Question on compiling on linux

2016-06-27 Thread Michael Torrie
On 06/27/2016 08:28 PM, Steven D'Aprano wrote: > On Tue, 28 Jun 2016 10:01 am, Dennis Lee Bieber wrote: > >> The Outlook style works well in a business environment where the >> recipient is likely the original sender of the quoted text, and doesn't >> need the context -- the quoted copy is just a

Re: Question on compiling on linux

2016-06-27 Thread Steven D'Aprano
Oh, and while I'm ranting about top-posting, there's another reason why it's shit. Speaking from experience, it makes searching email archives awful. I've been in the position of having to go through email archives looking for relevant email discussions related to a legal dispute. Trying to search

Re: Question on compiling on linux

2016-06-27 Thread Steven D'Aprano
On Tue, 28 Jun 2016 10:01 am, Dennis Lee Bieber wrote: > The Outlook style works well in a business environment where the > recipient is likely the original sender of the quoted text, and doesn't > need the context -- the quoted copy is just a courtesy copy in this case. No it doesn't work well.

Re: Question on compiling on linux

2016-06-27 Thread Random832
On Mon, Jun 27, 2016, at 00:26, Zachary Ware wrote: > A: Because you have to read things in reverse order. > Q: Why? > A: Top-posting. > Q: What's one of the most annoying common email practices? Which is witty, but doesn't *actually* explain why it's bad. 1. The intent, as I understand it, with

Re: Question on compiling on linux

2016-06-26 Thread Zachary Ware
On Saturday, June 25, 2016, Steven Truppe wrote: > > i hope this email works like you expected! Not quite, but closer. You've quoted me properly, but you added your reply above the quote, so-called "top-posting". A: Because you have to read things in reverse order. Q: Why? A: Top-posting. Q: Wh

Re: Question on compiling on linux

2016-06-25 Thread Steven Truppe
i hope this email works like you expected! I found the libpython3.so, i don't know why i was not able to see it, thank you very much to everyone wo helped me! No my last question(s) is how can i create debug/release builds ? Am 2016-06-24 um 22:08 schrieb Zachary Ware: On Fri, Jun 24, 2016 a

RE: Question on compiling on linux

2016-06-24 Thread Joaquin Alzola
>That gives me many .so files but no python*.so* file :( Install the python-devel. This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt. -- https://mail.pytho

Re: Question on compiling on linux

2016-06-24 Thread Zachary Ware
On Fri, Jun 24, 2016 at 2:28 PM, Steven Truppe wrote: > That gives me many .so files but no python*.so* file :( Where are you finding these many .so files? There should be libpython3.5m.so in the root of the source tree (alongside `python`). By the way, I'm not sure how you're accessing the lis

Re: Question on compiling on linux

2016-06-24 Thread Steven Truppe
That gives me many .so files but no python*.so* file :( Am 2016-06-24 um 20:35 schrieb Steven Truppe: So back to my first question now that you saw everything worked fine, but there is no python.so file, did i miss something when using ./configure ? Am 2016-06-24 um 20:23 schrieb Chris Angel

Re: Question on compiling on linux

2016-06-24 Thread Zachary Ware
On Fri, Jun 24, 2016 at 1:35 PM, Steven Truppe wrote: > So back to my first question now that you saw everything worked fine, but > there is no python.so file, did i miss something when using ./configure ? Try `./configure --enable-shared`. -- Zach -- https://mail.python.org/mailman/listinfo/p

Re: Question on compiling on linux

2016-06-24 Thread Steven Truppe
So back to my first question now that you saw everything worked fine, but there is no python.so file, did i miss something when using ./configure ? Am 2016-06-24 um 20:23 schrieb Chris Angelico: On Sat, Jun 25, 2016 at 4:19 AM, Steven Truppe wrote: But that's not a library file, it's the in

Re: Question on compiling on linux

2016-06-24 Thread Chris Angelico
On Sat, Jun 25, 2016 at 4:19 AM, Steven Truppe wrote: > But that's not a library file, it's the interpreter, i need the library to > extend and embend python into my own application ... Bouncing back to the list (please keep it there). The reason I mentioned ./python is that, if it isn't there,

Re: Question on compiling on linux

2016-06-24 Thread Chris Angelico
On Sat, Jun 25, 2016 at 1:00 AM, Steven Truppe wrote: > i want to write an application that does extend and embed Python. I > downloaded the sources for 3.5.1 and used ./confiugure to build. > > In the old times i got a file called python.so somewhere but now i get many > .so files and how can

Question on compiling on linux

2016-06-24 Thread Steven Truppe
Hi all, i want to write an application that does extend and embed Python. I downloaded the sources for 3.5.1 and used ./confiugure to build. In the old times i got a file called python.so somewhere but now i get many .so files and how can i change between debug and release build (32 and

Re: Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-30 Thread Andrea Gavana
> https://bugs.python.org/issue23842 > >> > > >> > But I assumed that it had been fixed waaaaay before 2.7.11. Now I am > >> > stuck and I have no idea on what to try next. > >> > > >> > Does anyone have suggestions/comments on where I should

Re: Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-29 Thread Andrea Gavana
Hi, On Friday, 29 April 2016, Igor Korot wrote: > Andrea, > > On Fri, Apr 29, 2016 at 3:45 PM, > > wrote: > > Dear list, > > > > I have been trying to compile wxPython Phoenix ( > https://github.com/wxWidgets/Phoenix) from source on Windows 10 64 bit, > Python 2.7 64 bit, using the very han

Re: Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-29 Thread Igor Korot
.org/issue23842 >> > >> > But I assumed that it had been fixed way before 2.7.11. Now I am >> > stuck and I have no idea on what to try next. >> > >> > Does anyone have suggestions/comments on where I should look for/what I >> > should do/what

Re: Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-29 Thread Igor Korot
Andrea, On Fri, Apr 29, 2016 at 3:45 PM, wrote: > Dear list, > > I have been trying to compile wxPython Phoenix > (https://github.com/wxWidgets/Phoenix) from source on Windows 10 64 bit, > Python 2.7 64 bit, using the very handy Microsoft Visual C++ Compiler for > Python 2.7 (https://www.

Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-29 Thread andrea . gavana
Dear list, I have been trying to compile wxPython Phoenix (https://github.com/wxWidgets/Phoenix) from source on Windows 10 64 bit, Python 2.7 64 bit, using the very handy Microsoft Visual C++ Compiler for Python 2.7 (https://www.microsoft.com/en-us/download/details.aspx?id=44266). I starte

Installation error, compiling from source on Oracle Linux

2016-02-16 Thread John D. Gwinner
downloaded Python-2.7.11 Downloaded zlib-1.2.8 Done ./configure --prefix=/root/Python-2.7.8 --with-libs=/usr/local/lib --disable-ipv6 However, I get an error while compiling. make altinstall gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IIn

Python compiling with third party tools

2015-12-25 Thread Ping Liu
I am developing an open source software for optimization purpose. We have interface to a list of solvers or solver interfaces like Openopt, Cylp, GLPK, CBC, SCip, Cplex, etc. Now the sponsor asks us to compile the python code, and wrap all the third party tools with it so that they do not need to i

Re: Help needed with compiling python

2015-11-26 Thread Kev Dwyer
Cecil Westerhof wrote: > On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > >> On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: >> >>> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof write

  1   2   3   4   5   6   7   8   >