-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
add speedscope
#27697
add speedscope
#27697
Conversation
@conda-forge/help-nodejs is this how you package npm packages? |
Hi! This is the staged-recipes linter and your PR looks excellent! 🚀 |
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/speedscope/meta.yaml:
|
Co-authored-by: Uwe L. Korn <[email protected]>
where does npm install the package? Do we need to move some things around? |
It should put it into $PREFIX with the binary in |
Co-authored-by: Uwe L. Korn <[email protected]>
|
CI needs a compiler, but the osx job has the same error as you probably have locally. @JannikWibkerQC can probably help you do the patching correctly. |
Afterwards you'd still do Not sure what the opinion is on installing from the npm registry vs. building it manually and installing it from there though. It is to be noted that building pnpm-licenses using If you go with the npm registry approach this should work: #!/bin/sh
set -exuo pipefail
if [[ "${target_platform}" == "osx-arm64" ]]; then
export npm_config_arch="arm64"
fi
# Don't use pre-built gyp packages
export npm_config_build_from_source=true
rm $PREFIX/bin/node
ln -s $BUILD_PREFIX/bin/node $PREFIX/bin/node
# install speedscope from the npm registry
# all things coming after this are just concerned with generating the third-party-licenses file
export NPM_CONFIG_USERCONFIG=/tmp/nonexistentrc
npm install -g speedscope@${PKG_VERSION}
pnpm import
pnpm install --prod
# generate third party licenses file
pnpm licenses list --json --prod | pnpm-licenses generate-disclaimer --prod --json-input --output-file=third-party-licenses.txt Like @xhochy mentioned you might need a c compiler or you could patch out the dev dependencies which require it: requirements:
build:
- {{ compiler('c') }}
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
- make
- nodejs You might also patch out the dev dependencies which require a compiler. We did something similar in the |
Hi! This is the friendly automated conda-forge-linting service. I was trying to look for recipes to lint for you, but it appears we have a merge conflict. Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
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.
If you can build from the source, we would prefer that as it is more self-contained (well npm packages are never self-contained).
Checklist
url
) rather than a repo (e.g.git_url
) is used in your recipe (see here for more details).