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
Noarch #317
Noarch #317
Conversation
|
|
I would change the meta.yaml key to be something more Python specific, so that this is easy to generalize to other languages without confusion. |
+1 for this being more Python specific. This implementation targets only This also doesn't solve the multi-arch problem (i.e., I can build a package on Darwin that works on Linux64 without any problems, but I can't specify the architecture. Per @ijstokes' recommendation, going down a |
Yes, this is very Python specific. I will change the key in the
However, the created package will not have Python specific metadata. |
@ilanschnell any idea why the tests are failing? It doesn't appear that they've passed at all. |
It's only Binstar build that's failing (erroring really). I guess the Windows build machines are down (?) |
Guys, we really need to get out of the habit of merging PRs that have broken tests in them. It basically makes that red X a useless designation and trains us to question it. That's a horrible habit to get into as we'll eventually merge something that's truly broken. |
If the Windows build machines are down, what are we supposed to do? |
|
||
build: | ||
noarch_python: True | ||
number: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilanschnell what is the number
key supposed to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build number lets you create a new build of a package without incrementing the version. conda compares versions of a package first by looking at the version string and then, if those are equal, comparing build numbers.
Regarding the option naming. Or maybe change it to I wanted to discuss it asap, before |
+1 Thanks @wojdyr! I really like |
I would like a noarch package build procedure which does no assumption on what is contained in a package, and does no change on what I provide. This is what could be triggered by |
@msarahan Oh yes, totally |
Hi there, thank you for your contribution! This pull request has been automatically locked because it has not had recent activity after being closed. Please open a new issue or pull request if needed. Thanks! |
Improved the creation of Python noarch packages quite a bit. The Python noarch packages handle examples, site-packages files and scripts cross platform. They work with the existing conda install process. These noarch packages, should go into the
noarch
directory, alongside (linux-64
,linux-32
, 'osx-64
, etc.) in the channel. Conda will look for packages in thenoarch
directory, this is implemented in PR 1120 conda/conda#1120.To build a noarch package, all which needs to be one is to add
the the
meta.yaml
files of the recipe. The way it works is the following. The package is build, usingbuild.sh
as usual, and afterwards the files are rearranged into a different file structure, and a pre-link Python script is generated, which (upon install) does the actual linking. As a result, theinfo/files
is empty.