Closed jdebacker closed 5 years ago
@jdebacker, Thank you for sharing you experience on Python 3.7 using Package-Builder release 0.22 to build packages for CCC release 1.0.0 (which was released yesterday on May 9, 2019).
I cannot exactly replicate your experience on my computer because I'm using Python 3.6 with Package-Builder 0.22. But I have done some investigation that may help you learn why you cannot build packages for CCC release 1.0.0 on your computer.
Here is what happens today on my Python-3.6+P-B-0.22 computer:
The command pbrelease Cost-of-Capital-Calculator ccc 0.2.9
builds four Python 3.6 ccc
packages before it crashes trying to build packages for Python 3.7 (because of the bug that was fixed in CCC PR 255).
The command pbrelease Cost-of-Capital-Calculator ccc 1.0.0
crashes trying to build packages for Python 3.6.
It seems to me that the above information implies that something changed in CCC between release 0.2.9 and release 1.0.0 that makes it no longer possible for me to build ccc
packages for Python 3.6 on my computer. And you cannot build Python 3.7 ccc
packages on your computer.
I couldn't find a change log in the CCC repository and all the release 1.0.0 notes say is this:
That doesn't give me much to go on. What's changed?
A lot of the structure of the model has changed, but I'm not sure most of those would affect the ability to package the model. E.g., Bokeh is now used in CCC, but that was already a dependency of Tax-Calc, which is a dependency of CCC.
A change I can think of that might affect the ability to build a package is the use of ParamTools, which was added as a dependency. The environment.yml
has recently been updated to include the conda-forge channel, and:
- "paramtools>=0.5.1"
- pip
- pip:
- git+https://github.com/comp-org/Developer-Tools.git@master
The environment.yml
also pins to Python 3.6. Should I remove pinning to this specific version?
CCC was successfully built with the process and modifications in https://github.com/PSLmodels/Cost-of-Capital-Calculator/pull/261.
Conda packages that do not include C/C++ extensions can be built for the noarch
platform. This includes packages that depend on other packages that do have these extensions. noarch
means that they will work for all operating systems except for Arch Linux.
Thanks @hdoupe for finding a solution.
@jdebacker, The extended conversation in pull request #168 found that your problem was caused by an inappropriate exact pin in the Cosr-of-Capital-Calculator/conda.recipe/meta.ymal
file in release 1.0.0.
I've had some issues building the CCC package using package builder.
I'm running version 0.22.0:
Please see the output below for what I see when trying to build the package. I'm having trouble figuring out what the issue is.