[Patches] [ python-Patches-742621 ] ast-branch: msvc project sync

SourceForge.net noreply at sourceforge.net
Mon Mar 21 00:10:40 CET 2005


Patches item #742621, was opened at 2003-05-23 17:20
Message generated for change (Comment added) made by logistix
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=742621&group_id=5470

Category: Parser/Compiler
Group: AST
Status: Open
Resolution: None
Priority: 5
Submitted By: logistix (logistix)
Assigned to: Brett Cannon (bcannon)
Summary: ast-branch: msvc project sync

Initial Comment:
The PCBuild project files weren't updated to reflect the 
new files used by ast-branch.  Attached is a patch to 
get it back into sync.

It also adds references to Python-ast.h and code.h to 
zipimport.c and pyexpat.c so that they will compile 
properly.  Parsermodule still won't compile [for obvious 
reasons ;-)]

I couldn't figure out how to setup a command-line script 
in VC 6.0, so the adsl_c.py script would still need to be 
done manually to get a working compile.  If anyone 
knows how the _ssl project was setup to run a python 
script, I'd appreciate some pointers.

----------------------------------------------------------------------

>Comment By: logistix (logistix)
Date: 2005-03-20 17:10

Message:
Logged In: YES 
user_id=699438

No you don't.

The easiest way to demonstrate is to open 
python\dist\src\pcbuild\pythoncore.vcproj on the HEAD 
branch of the source.  There is a top-level <Configuration> tag 
that is at the same level as the files tag that contains the 
appropriate information.  If you go down to the <Files> 
section, you'll see that files added after the 7.1 upgrade like 
_csv.c heapqmodule.c, and genobj.c don't have the per-file 
configuration info and compile fine.

I've gotten good builds in debug and release modes.  I can't 
test Itanium builds though.

----------------------------------------------------------------------

Comment By: John Ehresman (jpe)
Date: 2005-03-20 16:41

Message:
Logged In: YES 
user_id=22785

Yes, my question is really whether the config options for
the old files be applied to the new files (compile.c ->
newcompile.c, tokenizer.c -> tokenizer_pgen.c)

----------------------------------------------------------------------

Comment By: logistix (logistix)
Date: 2005-03-20 16:37

Message:
Logged In: YES 
user_id=699438

I removed two files from the project that are no longer used. 
compile.c and tokenzier.c have been superceded by 
newcompile.c and tokenizer_pgen.c.

If you look at the nesting in the XML project file, you'll see 
that those are per-file config settings for the two files in 
question.  They're just getting deleted as part of the file 
removal.

Why there were per-file settings instead of project-specific 
settings is another question altogeather.  Maybe it's an 
artifact from an automated VC6.0 project file upgrade.

----------------------------------------------------------------------

Comment By: John Ehresman (jpe)
Date: 2005-03-20 16:11

Message:
Logged In: YES 
user_id=22785

Looking at the diff, I wonder if we're losing any needed
specialized config options for particular files because I
see a number of FileConfiguration blocks removed.

----------------------------------------------------------------------

Comment By: logistix (logistix)
Date: 2005-03-20 14:34

Message:
Logged In: YES 
user_id=699438

Assigned to Brett per his post in python-dev.

----------------------------------------------------------------------

Comment By: logistix (logistix)
Date: 2005-01-11 16:20

Message:
Logged In: YES 
user_id=699438

Attaching updated patch for VC7.1.  Patches 3 files.

pcbuild.vcprod xml config file to add new files and remove
old.  No impact on linux builds.

pc/config.c removes reference to parsermodule file.  No
impact on linux builds.

newcompile.c required a one-line change to an array
prototype.  Using the keyword 'static' causes VC to think
that it's the real array def and it complains because there
is no data.  Commenting out 'static' fixes the problem. 
Unsure of impact on other builds.

----------------------------------------------------------------------

Comment By: logistix (logistix)
Date: 2005-01-05 01:15

Message:
Logged In: YES 
user_id=699438

I've attached an updated patch that gets things working 
against current cvs.  This also includes some fixes for typos 
that appear to have slipped through gcc and my have caused 
obscure bugs in *nix as well.

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2003-05-28 06:51

Message:
Logged In: YES 
user_id=11105

Logistix, to add a command line project in MSVC6, you select
'Add new Project to workspace' from the pcbuild workspace
context menu, and in the dialog that appears you click the
'Makefile'  icon in the projects tab, enter a project name,
click ok and then you can enter the command lines to use.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=742621&group_id=5470


More information about the Patches mailing list