-
Notifications
You must be signed in to change notification settings - Fork 799
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
How to set up the build environment #1489
Comments
Error solvedMFC v140 is in The devblog explains (see Screenshot!)
|
Question:
|
mc is used in the build to embed message resources in a few of the built files. Is that what you are asking? |
No, I don't question the reason for mc. Looks like an interesting technology. I wanted confirmation that amending the path environment variable on its own completes the pywin32 build environment, and that I don't miss steps which include amending the path. Thank you, I will create a pull request for a markdown document. |
Markus:
Thank you! Good work on the document.
Dear Group:
I have been attempting on-and-off for several years to build a working
pywin32 build machine. I have never (yet) succeeded, but the project has
floated back to the top of my personal to-do list. This time, I am writing
a script to create an entire build-and-test assembly, so that I will never
again have to submit an untested pull request. When complete, this script
is intended to be able to set up a build machine suitable for our CI/CD, or
for anyone who wants to be able to set up a build system with a few typed
(or cut-and paste) lines of command. None of the
pull-down-this-and-click-that kind of thing, so it will work on virtual
machines in a headless environment.
The deployment tool I have selected is Salt, <https://docs.saltstack.com>
which operates well on Windows, partly because it is written in Python
using pywin32. I am adding the necessary scripts to a Salt demonstration
system (salt-bevy <https://github.com/salt-bevy/salt-bevy>) which I
maintain, which already has most of the tools needed. The first baby steps
are in the pywin32_test_environment
<https://github.com/salt-bevy/salt-bevy/tree/pywin32_test_environment>
branch.
Consider this to be an announcement, and a request for frequent help. When
I hit each road block (the first of which I expect a few hours hence) I
will post a new thread on this forum. With help from all of you, each road
block will be solved in turn.
--
Vernon Cole
…On Sun, Mar 22, 2020 at 4:09 AM Markus ***@***.***> wrote:
No, I don't question the reason for mc. Looks like an interesting
technology.
I wanted confirmation that amending the path environment variable on its
own completes the pywin32 build environment, and that I don't miss steps
which include amending the path.
Thank you, I will create a pull request for a markdown document.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1489 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEZOBOEMR2KKUOCECA3TELRIXPUZANCNFSM4LQ5M7CA>
.
|
Hi @vernondcole, isn't that funny: I come to pywin32 because Salt uses it. In particular, I would like to propose a headless distribution variant of pywin32, which fits even better into Salt. I was also wondering how to test pywin32, so I can use the bevy, very handy. |
@vernondcole, I have repeated the install on a second PC, so I have confidence in the "pull-down-this-and-click-that" description of the setup. As you are aware, Salt uses pywin32. I would like to build a pywin32 variant without MFC. This would exclude Pythonwin and Scintilla, and all other GUI elements, because Salt does not require, and therefore should not contain MFC. I can ran Could you give me an advise how to proceed? |
I try to set up and document the build environment (for Python 3)
Related: #1487
This is a rewrite of https://wiki.python.org/moin/WindowsCompilers
Install Microsoft Visual C++ compiler for Python 3.5, 3.6, 3.7, 3.8
Microsoft Visual C++ 14.2 is in Visual Studio 2019
Download the Installer for Visual Studio 2019 (~ 1 MB)
In the installer:
C++ build tools
MSVCv142 - VS 2019 C++ x64/x86 build tools
Windows 10 SDK
C++ MFC for latest v142 build tools
(automatically ticksC++ ATL
)Install
(~ 5 GB)Restart
Include the "Microsoft (R) Message Compiler" into the path
Search
dir /b /s mc.exe
and set (example)
set "path=%path%;c:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64"
Run
python setup.py -q build
Error
What am I missing/doing wrong?
Thank you
The text was updated successfully, but these errors were encountered: