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

Commitb095aa9

Browse files
committed
Use more compatible hashbangs
This adds a #! line to the top of setup.py, because it is a scriptwith the executable bit set. Although neither recent nor currentdocumentation in the project recommends to run "./setup.py", thisshould probably have the intuitive effect of attempting to run thescript with a Python interpreter rather than a Unix-style shell.It also uses the "env trick" in init-tests-after-clone.sh so thatscript runs with whatever bash interpreter is found in a normalPATH search. While "sh" is expected to be found in /bin on allUnix-like systems, that is not always the case for "bash". Thischange slightly improves compatibility by supporting systems thatdon't ship with bash but on which it has been installed.
1 parent72e48aa commitb095aa9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎init-tests-after-clone.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#!/bin/bash -e
1+
#!/usr/bin/env bash
2+
3+
set -e
24

35
if [[-z"$TRAVIS" ]];then
4-
read -p"This operation will destroy locally modified files. Continue ? [N/y]:" answer
6+
read -rp"This operation will destroy locally modified files. Continue ? [N/y]:" answer
57
if [[!$answer=~ [yY] ]];then
68
exit 2
79
fi
@@ -13,4 +15,4 @@ git reset --hard HEAD~1
1315
git reset --hard HEAD~1
1416
git reset --hard HEAD~1
1517
git reset --hard __testing_point__
16-
git submodule update --init --recursive
18+
git submodule update --init --recursive

‎setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
fromtypingimportSequence
24
fromsetuptoolsimportsetup,find_packages
35
fromsetuptools.command.build_pyimportbuild_pyas_build_py

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp