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

Create new version 3.6.1 #23

Merged
merged 37 commits into from Nov 16, 2018
Merged

Create new version 3.6.1 #23

merged 37 commits into from Nov 16, 2018

Conversation

chrisdembia
Copy link
Contributor

@chrisdembia chrisdembia commented Oct 30, 2018

Checklist

  • Used a fork of the feedstock to propose changes
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy
  • Ensured the license file is being packaged.

@conda-forge-admin, please rerender

How do I ensure a new version is created? Could you create a new branch 3.6 in conda-forge/simbody-feedstock?

@conda-forge-linter
Copy link

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 (recipe) and found it was in an excellent condition.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-webservice.

I tried to re-render for you, but it looks like there was nothing to do.

@conda-forge-linter
Copy link

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 (recipe) and found it was in an excellent condition.

@chrisdembia
Copy link
Contributor Author

Ah I just realized there's already #21 . This PR is running into the same problem. I've been wading through documentation for using conda-build 3 but I'm a little confused. Can you provide some help using a more recent Clang on macOS that supports thread_local?

@chrisdembia
Copy link
Contributor Author

@conda-forge-admin, please update for conda-build 3

@chrisdembia
Copy link
Contributor Author

@conda-forge-admin, please rerender

recipe/meta.yaml Outdated

build:
number: 206
number: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

This may need to be a special number since it depends on open blas. I've been seeing 1000 for new conda 3 builds. Not quite sure why that is though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh interesting... thanks.

recipe/meta.yaml Outdated
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- xorg-libxi # [linux]
- xorg-libxmu # [linux]
- libglu # [linux]
Copy link
Contributor

Choose a reason for hiding this comment

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

These were install by yum previously, can probably remove that yum file now. I think it is deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. I can't get Simbody to find GL.h either way yet.

@moorepants
Copy link
Contributor

Thanks. This will be cool if it works!

@chrisdembia
Copy link
Contributor Author

Thanks. This will be cool if it works!

Yeah.

Sorry for not noticing your original PR.

The issue with thread_local on Mac is resolved now.

@moorepants
Copy link
Contributor

[ 66%] Building CXX object Simbody/Visualizer/simbody-visualizer/CMakeFiles/simbody-visualizer.dir/simbody-visualizer.cpp.o
/home/conda/feedstock_root/build_artifacts/simbody_1540952477226/work/Simbody/Visualizer/simbody-visualizer/simbody-visualizer.cpp:85:14: fatal error: GL/gl.h: No such file or directory
     #include <GL/gl.h>
              ^~~~~~~~~
compilation terminated.
make[2]: *** [Simbody/Visualizer/simbody-visualizer/CMakeFiles/simbody-visualizer.dir/simbody-visualizer.cpp.o] Error 1
make[1]: *** [Simbody/Visualizer/simbody-visualizer/CMakeFiles/simbody-visualizer.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "/opt/conda/bin/conda-build", line 11, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 439, in main
    execute(sys.argv[1:])
  File "/opt/conda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 430, in execute
    verify=args.verify, variants=args.variants)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/api.py", line 201, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/build.py", line 2275, in build_tree
    notest=notest,
  File "/opt/conda/lib/python3.6/site-packages/conda_build/build.py", line 1500, in build
    utils.check_call_env(cmd, env=env, cwd=src_dir, stats=build_stats)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/utils.py", line 319, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/utils.py", line 299, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/home/conda/feedstock_root/build_artifacts/simbody_1540952477226/work/conda_build.sh']' returned non-zero exit status 2.
Exited with code 1```

FYI

@moorepants
Copy link
Contributor

Same as: simbody/simbody#511

@chrisdembia
Copy link
Contributor Author

Thanks @moorepants. Did you ever get past that error with conda-forge?

@moorepants
Copy link
Contributor

Yes, but you deleted the workaround I had in the build.sh file. :)

@moorepants
Copy link
Contributor

Or maybe you didn't...maybe the glut headers aren't getting installed.

@chrisdembia
Copy link
Contributor Author

Okay I decided to hold off on the visualizer (and doxygen) for now. I don't want those features to hold up getting the package updated. My hope is that we can iterate later on adding support for the visualizer, etc.

It would be great if we could start the review process.

@chrisdembia
Copy link
Contributor Author

Let me know if there is anything I need to do to start the review process here.

@kidzik, thought you might be interested in this.

@chrisdembia
Copy link
Contributor Author

@moorepants do you know how we start the review process?

@moorepants
Copy link
Contributor

I can review. Just haven't had time. I'll see what I can do over the long weekend.

@chrisdembia
Copy link
Contributor Author

Oh okay neat! It's not urgent.

elif [[ "$OSTYPE" == "darwin"* ]]; then
SKIP_TEST=()
GLUT_OVERRIDE=()
fi

# https://github.com/AnacondaRecipes/freeglut-feedstock/blob/master/recipe/build.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a note about why this is linked here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed.

cmake .. \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_BUILD_TYPE="RELEASE" \
${CMAKE_PLATFORM_FLAGS[@]} \
Copy link
Contributor

Choose a reason for hiding this comment

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

Match indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed.

@@ -0,0 +1,18 @@
# https://github.com/ContinuumIO/anaconda-issues/issues/8779
# https://github.com/AnacondaRecipes/freeglut-feedstock/blob/master/recipe/cross-linux.cmake
# this one is important
Copy link
Contributor

Choose a reason for hiding this comment

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

These notes could be a bit more informative.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed.

@moorepants
Copy link
Contributor

This looks fine. I just hope that we can get the visualizer going in linux ASAP.

@moorepants
Copy link
Contributor

Do we need to be using this: https://conda-forge.org/docs/meta.html#using-conda-build-s-run-exports-feature ? We are producing a shared library that other people will link against.

@moorepants moorepants mentioned this pull request Nov 14, 2018
4 tasks
@chrisdembia
Copy link
Contributor Author

Do we need to be using this: https://conda-forge.org/docs/meta.html#using-conda-build-s-run-exports-feature ? We are producing a shared library that other people will link against.

Ah thanks. I've attempted to add this.

Ready for review again.

recipe/meta.yaml Outdated
- {{ compiler('c') }}
- {{ compiler('cxx') }}
# - doxygen # [not linux]
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

number: 206
number: 1001
run_exports:
- {{ pin_subpackage('simbody', max_pin='x.x') }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I still don't quite understand this after reading the conda documentation but I guess it will only matter once someone trys to link against it in an upstream package. It can be adjusted then if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding isn't great either.

@moorepants
Copy link
Contributor

I removed that one commented line. Will merge once tests pass.

@moorepants moorepants merged commit a1318e0 into conda-forge:master Nov 16, 2018
@chrisdembia
Copy link
Contributor Author

Thank you @moorepants!

@chrisdembia chrisdembia deleted the 3.6.1 branch November 16, 2018 17:55
@chrisdembia
Copy link
Contributor Author

Do you know how long it should take for the updated version to be available? Locally, I'm seeing the following (no 3.6.1):

14:18 ~ /usr/local/miniconda3/bin/conda search -c conda-forge simbody
Loading channels: done
# Name                  Version           Build  Channel             
simbody                   3.5.3 blas_openblas_200  conda-forge         
simbody                   3.5.3 blas_openblas_201  conda-forge         
simbody                   3.5.4 blas_openblas_200  conda-forge         
simbody                   3.5.4 blas_openblas_201  conda-forge         
simbody                   3.5.4 blas_openblas_202  conda-forge         
simbody                   3.5.4 blas_openblas_203  conda-forge         
simbody                   3.5.4 blas_openblas_204  conda-forge         
simbody                   3.5.4 blas_openblas_205  conda-forge         
simbody                   3.5.4 blas_openblash0edd121_206  conda-forge 

However, Anaconda Cloud lists 3.6.1:

https://anaconda.org/conda-forge/simbody/files

@isuruf
Copy link
Member

isuruf commented Nov 16, 2018

Newer compiler builds are uploaded to conda-forge/label/gcc7 as they are incompatible with the main channel builds which were created with gcc4

@isuruf
Copy link
Member

isuruf commented Nov 16, 2018

Once all the packages have been rebuilt with gcc7, they'll be dumped to the main channel. It'll take a few weeks for the rebuild process to finish

@chrisdembia
Copy link
Contributor Author

Ah then how do I specify simbody as a dependency in another package? {{ cdt('simbody') }}?

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.

None yet

6 participants