Skip to content

Commit b037b0e

Browse files
committed
CLN: just call print_versions via subprocess
1 parent 30a3d82 commit b037b0e

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

ci/print_versions.py

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
#!/usr/bin/env python
22

33

4-
try:
5-
from pandas.util.print_versions import show_versions
6-
except Exception as e:
7-
8-
print("Failed to import pandas: %s" % e)
9-
10-
def show_versions():
11-
import subprocess
12-
import os
13-
fn = __file__
14-
this_dir = os.path.dirname(fn)
15-
pandas_dir = os.path.dirname(this_dir)
16-
sv_path = os.path.join(pandas_dir, 'pandas', 'util',
17-
'print_versions.py')
18-
return subprocess.check_call(['python', sv_path])
4+
def show_versions():
5+
import subprocess
6+
import os
7+
fn = __file__
8+
this_dir = os.path.dirname(fn)
9+
pandas_dir = os.path.dirname(this_dir)
10+
sv_path = os.path.join(pandas_dir, 'pandas', 'util',
11+
'print_versions.py')
12+
return subprocess.check_call(['python', sv_path])
1913

2014

2115
if __name__ == '__main__':

0 commit comments

Comments
 (0)