Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update conda-recipe for use with conda-build >= 3.0#167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
murrayrm merged 1 commit intopython-control:masterfrommurrayrm:fix_conda
Jan 2, 2018
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletionsconda-recipe/meta.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
package:
name: control
version: {{ GIT_DESCRIBE_TAG }}

source:
git_url: ../

build:
number: {{ GIT_DESCRIBE_NUMBER }}
script:
- cd $RECIPE_DIR/..
- $PYTHON make_version.py
Expand Down
35 changes: 21 additions & 14 deletionsmake_version.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
# make_version.py - generate version information
#
# Author: Clancy Rowley
# Date: 2 Apr 2015
# Modified: Richard M. Murray, 28 Dec 2017
#
# This script is used to create the version information for the python-
# control package. The version information is now generated directly from
# tags in the git repository. Now, *before* running setup.py, one runs
#
# python make_version.py
#
# and this generates a file with the version information. This is copied
# from binstar (https://github.com/Binstar/binstar) and seems to work well.
#
# The original version of this script also created version information for
# conda, but this stopped working when conda v3 was released. Instead, we
# now use jinja templates in conda-recipe to create the conda information.
# The current version information is used in setup.py, control/__init__.py,
# and doc/conf.py (for sphinx).

from subprocess import check_output
import os

Expand DownExpand Up@@ -33,19 +54,5 @@ def main():
fd.write('__version__ = "%s.post%s"\n' % (version, build))
fd.write('__commit__ = "%s"\n' % (commit))

# Write files for conda version number
SRC_DIR = os.environ.get('SRC_DIR', '.')
conda_version_path = os.path.join(SRC_DIR, '__conda_version__.txt')
print("Writing %s" % conda_version_path)
with open(conda_version_path, 'w') as conda_version:
conda_version.write(version)

conda_buildnum_path = os.path.join(SRC_DIR, '__conda_buildnum__.txt')
print("Writing %s" % conda_buildnum_path)

with open(conda_buildnum_path, 'w') as conda_buildnum:
conda_buildnum.write(build)


if __name__ == '__main__':
main()

[8]ページ先頭

©2009-2025 Movatter.jp