Skip to content

PCbuild/build.bat: Add note about using msbuild response file.#1551

Merged
zooba merged 1 commit into
python:masterfrom
char101:patch-1
May 12, 2017
Merged

PCbuild/build.bat: Add note about using msbuild response file.#1551
zooba merged 1 commit into
python:masterfrom
char101:patch-1

Conversation

@char101
Copy link
Copy Markdown
Contributor

@char101 char101 commented May 12, 2017

Using a response file will eliminate the headache associated with batch argument/quote processing.

For example I unsuccessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h)

build.bat -p x64 -e -M --no-tkinter "/p:VCInstallDir=%VCInstallDir%"

but it built successfully when specifying it in a response file

msbuild.rsp:

/p:VCInstallDir=%VCInstallDir%

Using a response file will eliminate the headache associated with batch argument/quote processing.

For example I unsucessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h)

```batch
build.bat -p x64 -e -M --no-tkinter  "/p:VCInstallDir=%VCInstallDir%"
```

but it build successfully when specifying it in a response file

msbuild.rsp:
```
/p:VCInstallDir=%VCInstallDir%
```
@mention-bot
Copy link
Copy Markdown

@char101, thanks for your PR! By analyzing the history of the files in this pull request, we identified @zware and @zooba to be potential reviewers.

@the-knights-who-say-ni
Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@zooba zooba added the trivial label May 12, 2017
@zooba zooba merged commit 8619c54 into python:master May 12, 2017
@zooba
Copy link
Copy Markdown
Member

zooba commented May 12, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants