[issue4431] Distutils MSVC doesn't create manifest file

2017-01-05 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2017-01-05 Thread Charles Brossollet

Charles Brossollet added the comment:

Here with python 2.7.13 and Visual Studio 2013, I get hit by the problem and it 
looks like link.exe needs the /MANIFEST keyword. Voting to get it fixed!

--
nosy: +Charles Brossollet

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-07 Thread Pavel Repin

Changes by Pavel Repin prepin+pythonb...@gmail.com:


--
nosy:  -paxan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Steve Dower

Steve Dower added the comment:

It shouldn't be necessary for VS 2010 and later, and the 
`extra_link_args=['/MANIFEST']` workaround should be sufficient for cases where 
it is necessary (specific dependencies other than MSVCRT that require 
manifests).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Steve Dower

Steve Dower added the comment:

And I suspect Matthew Brett's issue is that link_executable() does not expect 
an extension ('.exe') to be provided.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Steve Dower

Steve Dower added the comment:

/MANIFEST is probably assumed on VC9 since the CRT required it, but that was 
probably changed for VC10 without updating the documentation fully. Frankly I'd 
rather remove the MANIFESTFILE property added by distutils, since it doesn't 
add anything of value (on my test machine, it only requests an execution level 
of asInvoker, which is the default).

That way people can include useful manifests with their source if necessary and 
provide both the /MANIFEST and /MANIFESTFILE flags themselves, and we reduce 
the amount of code in the stdlib.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Matthew Brett

Matthew Brett added the comment:

I think the argument previously was that VS 2010 was not the default compiler 
for Python 2.7, and so this problem was not important, but I'm happy to be 
corrected.

I haven't tried building extensions for Python 2.7 with VS 2010 but I guess the 
problem will be the same.

Can you see a problem with adding the /MANIFEST flag to 
distutils/msvc9compiler.py as a fix for this problem?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Stephen Hansen

Stephen Hansen added the comment:

Just to be clear, I ran into this exact issue recently in VS2010 professional 
as I indicated earlier. I don't know about what should or should not be needed, 
but the solution in the original comment fixed it exactly for me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Steve Dower

Steve Dower added the comment:

Sorry, I was focused on the fact that you don't need a manifest with VS 2010 
and not that distutils was forcing you to have one when building an executable.

Either adding '/MANIFEST' as in paxan's patch (according to 
http://msdn.microsoft.com/en-us/library/fft52235.aspx, you need to specify it 
if you specify '/MANIFESTNAME') or removing the MANIFESTNAME specification 
entirely should be fine for 3.4 and later. I assume since nobody has complained 
about 2.7 that everything works fine there?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2015-01-02 Thread Matthew Brett

Matthew Brett added the comment:

Steve - did you try my 'setup.py' example; it's standalone, as in `python 
setup.py build` will reproduce the error.

This is specifically VS 2010.

It doesn't make any difference for me if I specify an extension or not, so I 
don't think that is the problem.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2014-12-30 Thread Mark Lawrence

Mark Lawrence added the comment:

Should this issue be reopened or not?

--
components: +Windows
nosy: +dstufft, steve.dower, tim.golden, zach.ware
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2014-12-29 Thread Matthew Brett

Matthew Brett added the comment:

I think this is a frank bug for Pythons that use MSVC 10+ by default (3.3, 3.4 
for example).

The lack of the /MANIFEST flag breaks the 
distutils.ccompiler.CCompiler.link_executable command - see attached setup.py 
example.  The example gives the error main.exe.exe.manifest : general error 
c1010070: Failed to load and parse the manifest. The system cannot find the 
file specified.

We (http://nipy.org/dipy) ran into this because we were innocently using 
compilation of a 'main.c' file to an executable to check link flags.

--
nosy: +Matthew.Brett
Added file: http://bugs.python.org/file37556/setup.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2014-08-11 Thread Joachim Herb

Joachim Herb added the comment:

Using Visual C++ 10.0 SP1 Express to build extensions for python 3.4 (64bit) I 
also had to modify distutils/msvc9compiler.py in the described way

--
nosy: +jmozmoz
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2014-08-11 Thread Mark Lawrence

Mark Lawrence added the comment:

There are a lot of messages on this issue considering it was closed as invalid 
on 25th November 2008 :)

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2014-02-14 Thread Stephen Hansen

Stephen Hansen added the comment:

FYI. Windows 8.1, Visual Studio 2010 SP1 Pro just installed, Python 3.3.3; a 
random extension did this as a 'test' in its setup.py:

compiler = distutils.ccompiler.new_compiler()
if not compiler.has_function('rand', includes = ['stdlib.h']):
...

And this failed. Further investigation turned brought me here, and adding 
/MANIFEST to my ld_args as this patch does fixed it.

--
nosy: +ixokai

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

I need Python compiled with Visual Studio 2010 because I use it embedded in an 
application compiled with Visual Studio 2010.

I am pretty sure there are quite a lot of people who would like to compile 
Python with this compiler.

I have compiled Python 2.7.2 with this version of the compiler as well as many 
extensions, but this required to patch quite a few things. I also intend to 
setup a buildbot running Python tests using this compiler.

If I can provide the patch to support Visual Studio 2010 and setup a builtbot 
that will pass most of the tests, could we get Python supported on this 
platform?

I intended to announce all of that on python-dev soon, but the buildbot is not 
quite ready yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 If I can provide the patch to support Visual Studio 2010 and setup a
 builtbot that will pass most of the tests, could we get Python
 supported on this platform?

Yes. Even if VS2008 remains the preferred compiler to build Python, and the 
only one used for official binary distributions, there are already project 
files for VS8 and even VC6 (in PC/VS8.0 and PC/VC6).  They are not guaranteed 
to always work, but are updated from time to time by volunteers.
Please open another issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

I don't think a buildbot will be necessary - like the earlier compilers, they 
may have basic support but they don't all get buildbot support.  The problem 
isn't the lack of ability/will to get things working with VS2010 - it is more 
the lack of incentive to add another compiler to the mix.  OTOH, seeing it is 
nearly 2012, a case could certainly be made to move 3.3 to that compiler :)

I'm interested to see the patch required to get it working - almost every other 
upgrade has been almost handled completely by the VS upgrade process so it 
would be good to see how different this one is - so please CC me on any new 
issue you create.

I'm also interested to know how mixing the CRTs is causing problems - are you 
using the very few Python APIs impacted by such mixing, or is the issue more 
about needing to redistribute both, or something else entirely?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Amaury:
Great! I have opened issue 13210 to achieve that.

Mark:
Mixing the 2 CRTs results in plenty of crashes in our application. The 
application also uses a lot of Qt. It is not an option to use a prebuilt Python 
binary generated with VS2008.

I added you to issue 13210 and I will post the patches there soon.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-15 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Corey, Sebastian: VS 2010 is not supported. So failure to work correctly is not 
a bug in Python.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-10-14 Thread Corey O'Brien

Corey O'Brien coreypobr...@gmail.com added the comment:

Building py2exe with VS2010 I had this same issue and the /MANIFEST fix 
mentioned here fixed the problem.

I also think that this issue should be re-opened.

--
nosy: +coreypobrien

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo, mhammond
title: Distutils MSVC doesn't create manifest file (with fix) - Distutils MSVC 
doesn't create manifest file
versions: +Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

My experience is that for VS2008 at least, the /MANIFESTFILE: option seems to 
be ignored if there is nothing to put in the manifest, and this tends to be 
true if you use a static CRT instead of the DLL based one (ie, if you use /MT)

Issue 7833 has a patch designed to both (a) remove the manifest entirely if the 
only assembly reference is to the CRT and (b) give the setup.py author finer 
control over this behaviour.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-10-12 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

I got this problem again this morning while compiling pywin32.

This problem is not specific to me, anyone using Visual Studio 2010 to compile 
Python is experiencing the same issue:

http://nukeit.org/compile-python-2-7-packages-with-visual-studio-2010-express/
https://bitbucket.org/jaraco/jaraco.develop/src/f6e937d98e7f/jaraco/develop/msvc.py

Could you please reopen the issue or should I open a new one?
Thanks in advance

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-10-12 Thread David Schnur

David Schnur dnsch...@gmail.com added the comment:

I haven't commented since opening this issue, but I've been following along.  
Regarding Marc-Andre's latest comment, I think whether to embed a manifest or 
not is a separate issue.  The current behavior is to embed a manifest, and so 
it should ensure that the file is created.  As others have said, given that 
distutils expects /MANIFEST implicitly, there seems no harm in adding it 
explicitly.

I agree that this issue should be re-opened, since it's apparently not 
restricted just to my case of using /MT.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-09-08 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

I encountered the same problem while compiling the psutil package.

I used Python 3.2.2 that I compiled myself using Visual Studio 2010 SP1 in 
Debug mode by following the PCBuild/readme.txt documentation.

I could not compile psutil until I added in setup.py:
extra_link_args=['/MANIFEST']

I have not tried to compile any other C extension yet, but this is not 
mysql-python and I am not using setuptools either.

--
nosy: +sable
versions: +Python 2.6, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya

Santoso Wijaya santoso.wij...@gmail.com added the comment:

And also with an extension module I'm trying to build with Python-2.7.1 AMD64. 
Schnur's suggestion fixes it.

--
nosy: +santa4nt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya

Santoso Wijaya santoso.wij...@gmail.com added the comment:

Another workaround is by adding the linker argument to Extension() as 
extra_link_args:

extra_link_args=['/MANIFEST']

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-01-23 Thread Gregory Czajkowski

Gregory Czajkowski gcflym...@gmail.com added the comment:

Also happening with python2.6 and building pyzmq-2.0.10 using easy_install. 
dschnur's suggestion fixes it.

--
nosy: +gcflymoto

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-11-01 Thread David Joy

David Joy videa...@gmail.com added the comment:

Hi Marc,

Well, I fried my original server install trying to trace this.  My new fresh 
install can still reproduce the problem with mysql-python, but I can't recreate 
the issue with PyOpenSSL anymore.  Grabbing packages at random from PyPi hasn't 
given me a single issue so far, so I'm going to say this is an issue with 
mysql-python only and redirect my efforts there.

Thanks for your help,
-David

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread David Joy

David Joy videa...@gmail.com added the comment:

Hi All,

I just built mysql-python against CPython2.7 MSVC2008 Express Edition and 
Server 2003 R2.  All were freshly built on a clean Server 2003 install.  This 
exact issue occurred building with pip 0.8.1 on top of distribute 0.6.14:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe -nologo -manifest 
build\temp.win32-2.7\Release\_mysql.pyd.manifest 
-outputresource:build\lib.win32-2.7\_mysql.pyd;2

build\temp.win32-2.7\Release\_mysql.pyd.manifest : general error c1010070: 
Failed to load and parse the manifest. The system cannot find the file 
specified.

error: command 'mt.exe' failed with exit status 31


Command C:\Python27\python.exe -c import  setuptools;__file__='C:\\Documents 
and  
Settings\\Administrator\\build\\mysql-python\\setup.py';execfile(__file__) 
install --single-version-externally-managed --record 
c:\docume~1\admini~1\locals~1\temp\pip-qqb1ax-record\install-record.txt failed 
with error code 1
Storing complete log in C:\Documents and Settings\Administrator\Application 
Data\pip\pip.log

Pavel's patch fixes my build.  Does this patch break something else?  I can 
reproduce this on 2.7 and 2.6.6.

--
nosy: +David.Joy
versions: +Python 2.7 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Hi David,

since both you and Pavel are building mysql-python and using
setuptools (which applies a lot of hacks on stock distutils),
could you please also try some other package from PyPI in that
same configuration and preferably one which doesn't rely on
setuptools ?

Adding the switch per default will probably not cause much harm,
except when you explicitly don't want the manifest to be created
and added to the DLL (which is needed in some situations as as well).

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com



::: Try our new mxODBC.Connect Python Database Interface for free ! 

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread Marc-Andre Lemburg

Changes by Marc-Andre Lemburg m...@egenix.com:


Removed file: http://bugs.python.org/file13126/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2009-02-17 Thread Pavel Repin

Pavel Repin prepin+pythonb...@gmail.com added the comment:

I'd like to point out that on some configurations (at least mine), you 
really need to specify /MANIFEST option to the linker, even though MSDN 
documentation seems to imply that /MANIFEST behavior is ON by default.
My config:
beta version of Windows 7
ActivePython 2.6.1.1
MSVS 2008 with 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 
for 80x86

--
keywords: +patch
nosy: +paxan
Added file: 
http://bugs.python.org/file13124/0001-Ensure-the-assembly-manifest-file-generation-is-gene.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2009-02-17 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

On 2009-02-17 20:22, Pavel Repin wrote:
 Pavel Repin prepin+pythonb...@gmail.com added the comment:
 
 I'd like to point out that on some configurations (at least mine), you 
 really need to specify /MANIFEST option to the linker, even though MSDN 
 documentation seems to imply that /MANIFEST behavior is ON by default.
 My config:
 beta version of Windows 7
 ActivePython 2.6.1.1
 MSVS 2008 with 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 
 for 80x86

Are you sure ?

We've had such a request before and the reason for MSVC not generating
a .manifest file was some setting the user had done on his system.

FWIW: distutils generates those files just fine for me.

Then again, it probably doesn't hurt just adding the option.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2009-02-17 Thread Pavel Repin

Pavel Repin prepin+pythonb...@gmail.com added the comment:

Hi Marc,I am pretty sure it helped on my particular configuration.
I was trying to compile MySQL-python-1.2.2.tar.gz package from source and it
was failing in mt.exe step because the manifest file was not there.
I didn't do anything special on my machine. I have 3 versions of MSVS
installed cleanly side-by-side (which is a legit scenario): MSVS 2003, MSVS
2005, and MSVS 2008. All at the latest patch levels. No standalone
PlatformSDKs are installed.

Besides, if you just ignore the obscure blurb about /MANIFEST option being
default in MSDN, and read the descriptions of both /MANIFEST and
/MANIFESTFILE options, you would agree that it will not do any harm to be
explicit and always have /MANIFEST option passed to linker.

I'm going to do one more experiment with a different machine, this time it
will be Vista (not W7) with a similar MSVS setup. I will report my findings.

On Tue, Feb 17, 2009 at 2:08 PM, Marc-Andre Lemburg
rep...@bugs.python.orgwrote:


 Marc-Andre Lemburg m...@egenix.com added the comment:

 On 2009-02-17 20:22, Pavel Repin wrote:
  Pavel Repin prepin+pythonb...@gmail.com prepin%2bpythonb...@gmail.com
 added the comment:
 
  I'd like to point out that on some configurations (at least mine), you
  really need to specify /MANIFEST option to the linker, even though MSDN
  documentation seems to imply that /MANIFEST behavior is ON by default.
  My config:
  beta version of Windows 7
  ActivePython 2.6.1.1
  MSVS 2008 with 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08
  for 80x86

 Are you sure ?

 We've had such a request before and the reason for MSVC not generating
 a .manifest file was some setting the user had done on his system.

 FWIW: distutils generates those files just fine for me.

 Then again, it probably doesn't hurt just adding the option.

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue4431
 ___


Added file: http://bugs.python.org/file13126/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___div class=gmail_quoteHi Marc,divI am pretty sure it helped on my 
particular configuration./divdivI was trying to compile 
MySQL-python-1.2.2.tar.gz package from source and it was failing in mt.exe step 
because the manifest file was not there./div



divI didn#39;t do anything special on my machine. I have 3 versions of MSVS 
installed cleanly side-by-side (which is a legit scenario): MSVS 2003, MSVS 
2005, and MSVS 2008. All at the latest patch levels. No standalone PlatformSDKs 
are installed./div



divbr/divdivBesides, if you just ignore the obscure blurb about 
/MANIFEST option being default in MSDN, and read the descriptions of both 
/MANIFEST and /MANIFESTFILE options, you would agree that it will not do any 
harm to be explicit and always have /MANIFEST option passed to linker.br



br/divdivI#39;m going to do one more experiment with a different 
machine, this time it will be Vista (not W7) with a similar MSVS setup. I will 
report my findings./divdivdivdiv/divdivbr
div class=gmail_quoteOn Tue, Feb 17, 2009 at 2:08 PM, Marc-Andre Lemburg 
span dir=ltrlt;a href=mailto:rep...@bugs.python.org; 
target=_blankrep...@bugs.python.org/agt;/span wrote:br
blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1exbr
Marc-Andre Lemburg lt;a href=mailto:m...@egenix.com; 
target=_blankm...@egenix.com/agt; added the comment:br
divbr
On 2009-02-17 20:22, Pavel Repin wrote:br
gt; Pavel Repin lt;a href=mailto:prepin%2bpythonb...@gmail.com; 
target=_blankprepin+pythonb...@gmail.com/agt; added the comment:br
gt;br
gt; I#39;d like to point out that on some configurations (at least mine), 
youbr
gt; really need to specify /MANIFEST option to the linker, even though MSDNbr
gt; documentation seems to imply that /MANIFEST behavior is ON by default.br
gt; My config:br
gt; beta version of Windows 7br
gt; ActivePython 2.6.1.1br
gt; MSVS 2008 with 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08br
gt; for 80x86br
br
/divAre you sure ?br
br
We#39;ve had such a request before and the reason for MSVC not generatingbr
a .manifest file was some setting the user had done on his system.br
br
FWIW: distutils generates those files just fine for me.br
br
Then again, it probably doesn#39;t hurt just adding the option.br
divdiv/divdivbr
___br
Python tracker lt;a href=mailto:rep...@bugs.python.org; 
target=_blankrep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue4431; 
target=_blankhttp://bugs.python.org/issue4431/agt;br
___br
/div/div/blockquote/divbr/div/div/div/divbr
___
Python-bugs-list mailing list
Unsubscribe: 

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2009-02-17 Thread Pavel Repin

Pavel Repin prepin+pythonb...@gmail.com added the comment:

Marc-Andre,
I can also repro this on Vista machine with the same Python  MSVS
configuration.
This is the build error stemming from missing manifest file
(unnecessary details elided; note the absence of /MANIFEST option):
C:\src\MySQL-python-1.2.2python setup.py -v bdist_egg
...
...\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Program
Files\MySQL\MySQL Server 5.0\lib\opt /LIBPATH:C:\Python26\libs
/LIBPATH:C:\Python26\PCbuild kernel32.lib advapi32.lib wsock32.lib
mysqlclient.lib /EXPORT:init_mysql
build\temp.win32-2.6\Release\_mysql.obj
/OUT:build\lib.win32-2.6\_mysql.pyd
/IMPLIB:build\temp.win32-2.6\Release\_mysql.lib
/MANIFESTFILE:build\temp.win32-2.6\Release\_mysql.pyd.manifest
  Creating library build\temp.win32-2.6\Release\_mysql.lib and object
build\temp.win32-2.6\Release\_mysql.exp
...
...\mt.exe -nologo -manifest
build\temp.win32-2.6\Release\_mysql.pyd.manifest
-outputresource:build\lib.win32-2.6\_mysql.pyd;2
build\temp.win32-2.6\Release\_mysql.pyd.manifest : general error
c1010070: Failed to load and parse the manifest. The system cannot
find the file specified.
error: command 'mt.exe' failed with exit status 31

The error goes away when I hack msvc9compiler.py to have:
ld_args.append('/MANIFEST')

See patch attached to the bug.

On Tue, Feb 17, 2009 at 2:34 PM, Pavel Repin rep...@bugs.python.org wrote:

 Pavel Repin prepin+pythonb...@gmail.com added the comment:

 Hi Marc,I am pretty sure it helped on my particular configuration.
 I was trying to compile MySQL-python-1.2.2.tar.gz package from source and it
 was failing in mt.exe step because the manifest file was not there.
 I didn't do anything special on my machine. I have 3 versions of MSVS
 installed cleanly side-by-side (which is a legit scenario): MSVS 2003, MSVS
 2005, and MSVS 2008. All at the latest patch levels. No standalone
 PlatformSDKs are installed.

 Besides, if you just ignore the obscure blurb about /MANIFEST option being
 default in MSDN, and read the descriptions of both /MANIFEST and
 /MANIFESTFILE options, you would agree that it will not do any harm to be
 explicit and always have /MANIFEST option passed to linker.

 I'm going to do one more experiment with a different machine, this time it
 will be Vista (not W7) with a similar MSVS setup. I will report my findings.

 On Tue, Feb 17, 2009 at 2:08 PM, Marc-Andre Lemburg
 rep...@bugs.python.orgwrote:

 
  Marc-Andre Lemburg m...@egenix.com added the comment:
 
  On 2009-02-17 20:22, Pavel Repin wrote:
   Pavel Repin prepin+pythonb...@gmail.com prepin%2bpythonb...@gmail.com
  added the comment:
  
   I'd like to point out that on some configurations (at least mine), you
   really need to specify /MANIFEST option to the linker, even though MSDN
   documentation seems to imply that /MANIFEST behavior is ON by default.
   My config:
   beta version of Windows 7
   ActivePython 2.6.1.1
   MSVS 2008 with 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08
   for 80x86
 
  Are you sure ?
 
  We've had such a request before and the reason for MSVC not generating
  a .manifest file was some setting the user had done on his system.
 
  FWIW: distutils generates those files just fine for me.
 
  Then again, it probably doesn't hurt just adding the option.
 
  ___
  Python tracker rep...@bugs.python.org
  http://bugs.python.org/issue4431
  ___
 

 Added file: http://bugs.python.org/file13126/unnamed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue4431
 ___

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread David Schnur

New submission from David Schnur [EMAIL PROTECTED]:

This is my first time submitting an issue; sorry if I am doing this 
wrong.  While attempting to build/install PyOpenSSL on Windows / MSVC, 
the mt.exe step failed because it could not find the manifest file that 
it was attempting to embed in crypto.pyd.  The problem was that link.exe 
was not creating the manifest.

The reason why is that distutils only passes link.exe the 
/MANIFESTFILE:filename parameter.  This tells it where to output the 
manifest, but not to actually create the manifest (see 
http://msdn.microsoft.com/en-us/library/fft52235(VS.80).aspx).  You'd 
think link could figure out that, if you use /MANIFESTFILE, you want a 
manifest, but I guess not ;)

My solution was to add this line to distutils/msvc9compiler.py:

ld_args.append('/MANIFEST')

Right beneath the existing line:

ld_args.append('/MANIFESTFILE:' + temp_manifest)

Hope that helps

--
components: Distutils
messages: 76424
nosy: dschnur
severity: normal
status: open
title: Distutils MSVC doesn't create manifest file (with fix)
type: behavior
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Since issue4120, the compilation tools precisely chose to *not* embed 
manifests in .pyd extensions.
This probably means that the mt.exe step should be skipped by 
distutils.

--
assignee:  - loewis
nosy: +amaury.forgeotdarc, loewis

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread Marc-Andre Lemburg

Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:

On 2008-11-25 21:16, David Schnur wrote:
 New submission from David Schnur [EMAIL PROTECTED]:
 
 This is my first time submitting an issue; sorry if I am doing this 
 wrong.  While attempting to build/install PyOpenSSL on Windows / MSVC, 
 the mt.exe step failed because it could not find the manifest file that 
 it was attempting to embed in crypto.pyd.  The problem was that link.exe 
 was not creating the manifest.
 
 The reason why is that distutils only passes link.exe the 
 /MANIFESTFILE:filename parameter.  This tells it where to output the 
 manifest, but not to actually create the manifest (see 
 http://msdn.microsoft.com/en-us/library/fft52235(VS.80).aspx).  You'd 
 think link could figure out that, if you use /MANIFESTFILE, you want a 
 manifest, but I guess not ;)
 
 My solution was to add this line to distutils/msvc9compiler.py:
 
 ld_args.append('/MANIFEST')
 
 Right beneath the existing line:
 
 ld_args.append('/MANIFESTFILE:' + temp_manifest)
 
 Hope that helps

I'm not sure whether that's necessary. We are building pyOpenSSL
just fine against stock Python 2.6.0 in our distribution:

http://www.egenix.com/products/python/pyOpenSSL/

and even though the command line does not include the /MANIFEST
switch, the linker does builds the .manifest file just fine.

OTOH, it probably doesn't hurt adding the switch :-)

--
nosy: +lemburg

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread Marc-Andre Lemburg

Marc-Andre Lemburg [EMAIL PROTECTED] added the comment:

This is why we don't see the problem:

http://msdn.microsoft.com/en-us/library/f2c0w594.aspx


The default is /MANIFEST.


So it appears that you must have disabled this default somehow.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread David Schnur

David Schnur [EMAIL PROTECTED] added the comment:

I looked at this some more (I'm not super familiar with the use of
manifests) and I think I figured it out.  For somewhat complicated
reasons, I'm compiling with /MT rather than /MD.  Although link normally
produces a manifest, since it's unnecessary when compiling static, it
isn't created unless you specify /MANIFEST.

So I suppose the issue is that distutils is trying to embed the manifest
in cases where it may legitimately not exist.  Since /MT is not the
default (I had to make that change explicitly), this is probably not a bug.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2008-11-25 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Closing it as invalid then.

--
resolution:  - invalid
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4431
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com