Skip to content

Commit

Permalink
Merge pull request #15 from jjhelmus/micro_ver
Browse files Browse the repository at this point in the history
add micro version to cudatoolkit 10.0 package
  • Loading branch information
seibert authored Feb 8, 2019
2 parents a48b39c + a37525e commit 9827d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion condarecipe10.0/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package:
name: cudatoolkit
version: 10.0
# match the package version to the libcudart.so version
version: 10.0.130

build:
number: 0
Expand Down
4 changes: 4 additions & 0 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,10 @@ def _main():

# package version decl must match cuda release version
cu_version = os.environ['PKG_VERSION']
# keep only the major.minor version (10.0) if micro (10.0.130) is present
major_minor, micro = cu_version.rsplit('.', 1)
if '.' in major_minor:
cu_version = major_minor

# get an extractor
plat = getplatform()
Expand Down

0 comments on commit 9827d76

Please sign in to comment.