Skip to content

Commit f5e1075

Browse files
committed
improve wording, remove unused code
1 parent 4e81369 commit f5e1075

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

conda_build/build.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ def rewrite_file_with_new_prefix(path, data, old_prefix, new_prefix):
134134

135135

136136
def get_run_dists(m):
137-
if not m.get_value('build/pin_depends'):
138-
return None
139137
prefix = join(cc.envs_dirs[0], '_run')
140138
rm_rf(prefix)
141139
create_env(prefix, [ms.spec for ms in m.ms_depends('run')])
@@ -192,10 +190,13 @@ def create_info_files(m, files, include_recipe=True):
192190
dists = get_run_dists(m)
193191
with open(join(config.info_dir, 'requires'), 'w') as fo:
194192
fo.write("""\
195-
# This file may be used to create the test environment of this package using:
193+
# This file as created when building:
194+
#
195+
# %s.tar.bz2 (on '%s')
196+
#
197+
# It can be used to create the runtime environment of this package using:
196198
# $ conda create --name <env> --file <this file>
197-
# platform: %s
198-
""" % cc.subdir)
199+
""" % (m.dist(), cc.subdir))
199200
for dist in sorted(dists + [m.dist()]):
200201
fo.write('%s\n' % '='.join(dist.rsplit('-', 2)))
201202
if pin_depends == 'strict':

0 commit comments

Comments
 (0)