Skip to content

Add NuGet build config files#2

Open
NaxAlpha wants to merge 3 commits into
mlpack:masterfrom
NaxAlpha:master
Open

Add NuGet build config files#2
NaxAlpha wants to merge 3 commits into
mlpack:masterfrom
NaxAlpha:master

Conversation

@NaxAlpha
Copy link
Copy Markdown

@NaxAlpha NaxAlpha commented Apr 17, 2017

mlpack.autopkg is config file for NuGet build. During build, we can wget this file and use it to build and publish NuGet for mlpack.
Please, make any changes required in given file.

Comment thread mlpack.autopkg
my_bin: {
#destination:${d_bin}/.;
#add-each-file : ::nuget.[default]targets.[${condition}].CopyToOutput;
"build/release/mlpack.dll"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be mlpack.lib? Also, it looks like destination and add-each-file are unused, so maybe we can remove the parameters?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CoApp handles *.lib automatically but for bin it creates extra package called mlpack-redist. So, I had to use this simple hack trick. destination specifies content should be in bin path and add-each-file specifies bin file should be copied to output folder during build time.

Comment thread mlpack.autopkg
}
files{
nestedInclude:{
#destination = ${d_include}mlpack;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove destination here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove destination then include folder in NuGet package doesn't get proper structure!

Copy link
Copy Markdown
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there are a few more issues to address but I think this is a good start. Can you tell me how you tested this?

If I am understanding correctly, this autopkg file is only for packaging, not for compilation. So the compilation of mlpack on Windows is a separate step. Is that correct?

Comment thread mlpack.autopkg Outdated
description: "mlpack is an intuitive, fast, scalable C++ machine learning library, meant to be a machine learning analog to LAPACK. It aims to implement a wide array of machine learning methods and functions as a "swiss army knife" for machine learning researchers.";
summary: "Bugs Fixed";
releaseNotes: "";
authors: {Ryan Curtin};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm definitely not the only contributor, maybe we should wrote see http://www.mlpack.org/about.html here or something.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you are the owner 😃 and the list is too long 😆.

Comment thread mlpack.autopkg
projectUrl: "https://github.com/mlpack/mlpack";
title: "mlpack: a scalable C++ machine learning library";
description: "mlpack is an intuitive, fast, scalable C++ machine learning library, meant to be a machine learning analog to LAPACK. It aims to implement a wide array of machine learning methods and functions as a "swiss army knife" for machine learning researchers.";
summary: "Bugs Fixed";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this means, maybe just put 'mlpack is a scalable C++ machine learning library' here and just use 'mlpack' as the title?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is good idea!

@NaxAlpha
Copy link
Copy Markdown
Author

Definitely, it will only be used to pack NuGet package after AppVeyor build is complete!
To Test NuGet:

and Done!

@rcurtin
Copy link
Copy Markdown
Member

rcurtin commented Apr 21, 2017

Ok, sounds good. Can you fix the summary and description?

Once this is merged, what will the next step be? We need to hook up AppVeyor to build the tags of mlpack, then push that to build the NuGet package. Do you have a plan for how that can be done? We don't have any Windows build slaves currently, so if we can use AppVeyor for this it would be best.

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.

3 participants