File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44.ropeproject /
55MANIFEST
66control /_version.py
7+ __conda_ * .txt
8+ record.txt
79build.log
810* .egg-info /
911.coverage
Original file line number Diff line number Diff line change 1+ cd %RECIPE_DIR% \..
2+ %PYTHON% make_version.py
3+ %PYTHON% setup.py install --single-version-externally-managed --record=record.txt
Original file line number Diff line number Diff line change 1+ package :
2+ name : control
3+
4+ build :
5+ script :
6+ - cd $RECIPE_DIR/..
7+ - $PYTHON make_version.py
8+ - $PYTHON setup.py install --single-version-externally-managed --record=record.txt
9+
10+ requirements :
11+ build :
12+ - python
13+
14+ run :
15+ - python
16+ - numpy
17+ - scipy
18+ - matplotlib
19+
20+ test :
21+ requires :
22+ - nose
23+
24+ imports :
25+ - control
26+
27+ about :
28+ home : http://python-control.sourceforge.net
29+ license : BSD License
30+ summary : ' Python control systems library'
31+
32+ # See
33+ # http://docs.continuum.io/conda/build.html for
34+ # more information about meta.yaml
Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ def main():
2222 fd .write ('__version__ = "%s.post%s"\n ' % (version , build ))
2323 fd .write ('__commit__ = "%s"\n ' % (commit ))
2424
25+ # Write files for conda version number
26+ SRC_DIR = os .environ .get ('SRC_DIR' , '.' )
27+ conda_version_path = os .path .join (SRC_DIR , '__conda_version__.txt' )
28+ print ("Writing %s" % conda_version_path )
29+ with open (conda_version_path , 'w' ) as conda_version :
30+ conda_version .write (version )
31+
32+ conda_buildnum_path = os .path .join (SRC_DIR , '__conda_buildnum__.txt' )
33+ print ("Writing %s" % conda_buildnum_path )
34+
35+ with open (conda_buildnum_path , 'w' ) as conda_buildnum :
36+ conda_buildnum .write (build )
37+
2538
2639if __name__ == '__main__' :
2740 main ()
You can’t perform that action at this time.
0 commit comments