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

looking for a recipe to install c++ and python2.7 #55

Closed
refack opened this issue Nov 7, 2018 · 4 comments
Closed

looking for a recipe to install c++ and python2.7 #55

refack opened this issue Nov 7, 2018 · 4 comments

Comments

@refack
Copy link

refack commented Nov 7, 2018

Hello,

At the Node.js project we're trying to create an installer utility that will get all the build tools needed to later compile native addons.
ATM we use boxstarter to do:

choco upgrade -y python2
choco upgrade -y visualstudio2017buildtools
choco upgrade -y visualstudio2017-workload-vctools

But I was wondering if we could do it with a single package something like visualstudio2017buildtools + vctools + python2?

Any help would be much appreciated.

@jberezanski
Copy link
Owner

You can install all desired Visual Studio Build Tools components in one choco.exe invocation using package parameters, e.g.:

choco upgrade -y visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"

(the package passes nearly all package parameters directly to the VS installer, so the official Microsoft documentation applies: https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017)

The python2 package is completely unrelated, so if you want to install everything using only one choco package then you need to craft such a package yourself, for example by merging the install scripts of the existing packages. I'm not sure why you would need to do that, however - could you elaborate on why you cannot install two or more packages?

@refack
Copy link
Author

refack commented Nov 9, 2018

I don't need the python2 package specifically. AFAICT the VS installer can slipstream python and that should be good enough:
image

For the node-core development we use python for build scaffolding, tooling and as a test harness.
Recently we started to use boxstarter to wrap everything together, and it's tricky. I was thinking that it's actually overkill if all we need is VC++, an SDK, python2, and G4W, and now they are all available as "Individual Components" in the VS installer. And that is we can do it all in one choco call we don't need boxstarter.

@refack
Copy link
Author

refack commented Nov 9, 2018

P.S. thank you for you time and attention.

@jberezanski
Copy link
Owner

So, have you been able to determine the set of component identifiers needed to install all components required by your development process in one go and translate it to package parameters?

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

No branches or pull requests

2 participants