Skip to content

Commit 6fdc34a

Browse files
authored
Copy docs when down converting to Python 2.7
1 parent ca3681e commit 6fdc34a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python2.7-generate.sh

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ trap print_cached_err ERR
4646

4747
# Copy into output directory and convert in-place.
4848
cp -r "${in_dir}/cirq" "${out_dir}/cirq"
49-
3to2 "${out_dir}/cirq" -w >/dev/null 2> "${out_dir}/err_tmp.log"
50-
find "${out_dir}/cirq" | grep "\.py\.bak$" | xargs rm -f
49+
cp -r "${in_dir}/docs" "${out_dir}/docs"
50+
3to2 "${out_dir}" -w >/dev/null 2> "${out_dir}/err_tmp.log"
51+
find "${out_dir}" | grep "\.py\.bak$" | xargs rm -f
5152

5253
# Build protobufs.
5354
proto_dir="${out_dir}/cirq/api/google/v1"

0 commit comments

Comments
 (0)