Skip to content

Commit 78327a7

Browse files
committed
2 parents 0c87fb4 + ea9accf commit 78327a7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

randomstate/src/pcg/pcg-64-test-gen.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main(void)
1111
int i;
1212
pcg128_t seed1 = 42ULL, seed2 = 1ULL;
1313
uint64_t temp;
14-
pcg64_random_t state = {{ 0 ]};
14+
pcg64_random_t state = {{ 0 }};
1515
pcg64_srandom_r(&state, seed1, seed2);
1616
FILE *fp;
1717
fp = fopen("pcg64-testset-1.csv", "w");
@@ -45,4 +45,4 @@ int main(void)
4545
}
4646
fclose(fp);
4747

48-
}
48+
}

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ def is_pure(self):
173173

174174

175175
try:
176-
subprocess.call(['pandoc', '--from=markdown', '--to=rst', '--output=README.rst', 'README.md'])
176+
import os
177+
readme_orig_time = os.path.getmtime('README.md')
178+
readme_mod_time = os.path.getmtime('README.rst')
179+
if readme_orig_time > readme_mod_time:
180+
subprocess.call(['pandoc', '--from=markdown', '--to=rst', '--output=README.rst', 'README.md'])
177181
except:
178182
pass
179183
# Generate files and extensions

0 commit comments

Comments
 (0)