File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed
Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,3 @@ scons test
2121
2222# Install the library.
2323scons install prefix=$PREFIX
24-
25- grep ' ^#define DIFFPY_VERSION_STR' < " ${PREFIX} /include/diffpy/version.hpp" |
26- cut -d ' "' -f 2 > __conda_version__.txt
Original file line number Diff line number Diff line change 1+ {% set setupdata = load_setup_py_data(from_recipe_dir=True) %}
2+
13package :
24 name : libdiffpy
3- # # Use __conda_version__.txt.
4- # version: 1.3
5+ version : {{ setupdata['version'] }}
56
67source :
78 # git_url: https://github.com/diffpy/libdiffpy.git
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+ """\
4+ Dummy distutils setup script that provides version data for meta.yaml.
5+ """
6+
7+ import os
8+ import sys
9+ from distutils .core import setup
10+
11+ MYDIR = os .path .dirname (os .path .abspath (__file__ ))
12+ SITESCONSDIR = os .path .abspath (os .path .join (MYDIR , '../site_scons' ))
13+ sys .path .insert (0 , SITESCONSDIR )
14+
15+ from libdiffpybuildutils import gitinfo
16+
17+ ginfo = gitinfo ()
18+
19+ setup (
20+ name = 'libdiffpy' ,
21+ version = ginfo ['version' ],
22+ )
You can’t perform that action at this time.
0 commit comments