Example #1
0
 def install(self):
     environment = self.environment
     command = ['perl', './Configure', '--prefix=%s' % environment.prefix,
                'zlib-dynamic', 'shared']
     if Platform.current().os_name == 'osx':
         command.append('darwin64-x86_64-cc')
     self.run_command(command)
     self.run_make()
     self.run_make(['install',
                    'MANDIR=%(man)s' % environment.directories,
                    'MANSUFFIX=ssl'])
Example #2
0
 def test_parse(self):
     p = Platform.parse('a-b-c')
     self.assertEqual(p.os_name, 'a')
     self.assertEqual(p.os_release, 'b')
     self.assertEqual(p.architecture, 'c')
Example #3
0
 def test_current(self):
     p = Platform.current()
     if platform.system() == 'Darwin':
         self.assertEqual(p.os_name, 'osx')
     self.assertEqual(p.architecture, platform.machine())
Example #4
0
 def test_parse_any(self):
     p = Platform.parse('ANY')
     self.assertEqual(p.os_name, 'any')
     self.assertEqual(p.os_release, 'any')
     self.assertEqual(p.architecture, 'any')