Skip to content

Conversation

@dilawar
Copy link
Contributor

@dilawar dilawar commented Jan 29, 2020

World has moved on since moose 3.1.4 was released. This is a maintenance release.

  • python3 is preferred over python2.
  • build system is tweaked to build on osx and linux.
  • Python API does not build with clang. A fix is included.

Note for maintainers

  • After merging please tag the resultant commit version v3.1.5. I can't do it since I am no longer on maintainer list for this repo.

Once this PR is resolved, we can move on to fix BhallaLab/homebrew-moose#1

Dilawar Singh and others added 6 commits January 29, 2020 11:45
- cmake 3.12 is minimum required.
- Fixes to Python API. strncpy can not write to `const char*`. Instead
initialize with value.
- Build system fixes.
dilawar pushed a commit to dilawar/pymoose-deploy that referenced this pull request Jan 29, 2020
@dilawar dilawar requested review from subhacom and upibhalla January 29, 2020 10:16

vec[currIndex].name = strdup(name.c_str());
vec[currIndex].doc = (char*) "Destination field";
// Dilawar:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@subhacom The clang++ compiler did not compile. Because PyGetSetDef.name is a const char* therefore the function strncpy can't write to this field. Have a look at these changes. I don't think there is a possibility of memory leak.

See https://docs.python.org/3/c-api/structures.html#c.PyGetSetDef

@dilawar
Copy link
Contributor Author

dilawar commented Jan 29, 2020

@upibhalla @hrani Please review and merge it into the chamcham branch. Once merged, please tag the commit with v3.1.5 if you want me to update the packages.

After this PR is resolved, I can move on to address BhallaLab/homebrew-moose#1

@dilawar dilawar requested a review from hrani January 29, 2020 10:21
@dilawar
Copy link
Contributor Author

dilawar commented Jan 31, 2020

@upibhalla @hrani reminder.

@upibhalla upibhalla merged commit 0ae1008 into BhallaLab:chamcham Feb 4, 2020
@dilawar dilawar deleted the chamcham branch February 4, 2020 17:16
@dilawar
Copy link
Contributor Author

dilawar commented Feb 4, 2020

Thanks @upibhalla . Please also create a tag the current HEAD of chamcham branch to v3.1.5 https://github.com/BhallaLab/moose-core/releases

@dilawar
Copy link
Contributor Author

dilawar commented Feb 4, 2020

Released 3.1.5, https://pypi.org/project/pymoose/

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.

2 participants