aboutsummaryrefslogtreecommitdiff
blob: 191ca18c4686cff467ec9de1653895f2296f7f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py
index 0e2567c..bf782b5 100644
--- a/config/PETSc/options/installDir.py
+++ b/config/PETSc/options/installDir.py
@@ -38,12 +38,6 @@ class Configure(config.base.Configure):
     self.installSudoMessage = ''
     if self.framework.argDB['prefix']:
       self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix']))
-      try:
-        os.makedirs(os.path.join(self.dir,'PETScTestDirectory'))
-        os.rmdir(os.path.join(self.dir,'PETScTestDirectory'))
-      except:
-        self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs'
-        self.installSudo = 'sudo '
     else:
       self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch))
     self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch))