Skip to content

Commit edfa8f3

Browse files
committed
Unshallow git clone for build on readthedocs
1 parent eb8dd9f commit edfa8f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import subprocess
55

66
if sys.argv[1:2] == ['install']:
7+
subprocess.call(['git', 'fetch', '--unshallow'],
8+
cwd=os.path.abspath(os.path.dirname(__file__)))
79
subprocess.check_call([sys.executable, 'build.py'],
810
cwd=os.path.abspath(os.path.dirname(__file__)))
911
else:

0 commit comments

Comments
 (0)