Skip to content

Commit

Permalink
Get version from setup.py for conda package (pytorch#459)
Browse files Browse the repository at this point in the history
Summary:
Get version from setup.py for conda package.
Then the pip package and conda package will have the same version.

Pull Request resolved: pytorch#459

Reviewed By: malfet

Differential Revision: D32171575

Pulled By: gdankel

fbshipit-source-id: 63b027b829b6fcfbf7130d63c4a27d66d760dc86
  • Loading branch information
guyang3532 authored and facebook-github-bot committed Nov 8, 2021
1 parent e624b51 commit bace9b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tb_plugin/packaging/torch_tb_profiler/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% set data = load_setup_py_data(setup_file='../../setup.py', from_recipe_dir=True) %}

package:
name: torch_tb_profiler
version: "{{ environ.get('BUILD_VERSION', '0.2.0') }}"
version: "{{ data.get('version') }}"

source:
path: "{{ environ.get('SOURCE_ROOT_DIR', '../..') }}"
Expand Down

0 comments on commit bace9b5

Please sign in to comment.