Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need VC 10 version of Python for Windows extensions #551

Closed
ghost opened this issue May 12, 2011 · 2 comments
Closed

Need VC 10 version of Python for Windows extensions #551

ghost opened this issue May 12, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented May 12, 2011

Background: have app that has Python embedded and we using the extensions in many scripts that we supply. Needed features in new MFC with VC10. Want to use Python 2.7. Python won't initialize unless same C run-time, so rebuilt python27.dll (and some others, but that seems all that is critical). We've done this before (at Python 2.8 with VC 9) but this time cannot import win32api. So thought we needed to rebuild that, too.
Using Python 2.7. Downloaded source for v 216.2. Try to build it using setup.py that came with it with installed Py 2.7. Fails trying to build perfmondata; appears to be looking for *.man files that do not exist. Decided to try again using rebuilt Python (VC10). Setup correctly identifies compiler and linker (cool!) but now failure occurs trying to load winapi. Tried rebuilding that using VS project file. Seems to build. Tried to run product on bare hope that that was all that was needed - failure importing _win32sysloader. Don't see how that gets rebuilt. Still can't get past perfmondata in setup.
Are we going about this the right way?

Reported by: martymike

Original Ticket: pywin32/bugs/551

@ghost
Copy link
Author

ghost commented May 12, 2011

Things should be build with just "setup.py build" - the VS project files are out of date and just act as a "container" for the list of source files for each project.

Try doing "setup.py build --force" and paste the full error log.

Original comment by: mhammond

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 26, 2024

Closing as correct build steps are provided.
Also documented: https://github.com/mhammond/pywin32#building-from-source

As a sidenote: python setup.py and the use of setup.py as a command line tool are deprecated. pywin32 itself needs to move away from it. #2208

@Avasam Avasam closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant