예제 #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'])
예제 #2
0
파일: test_platforms.py 프로젝트: jol/ipkg
 def test_current(self):
     p = Platform.current()
     if platform.system() == 'Darwin':
         self.assertEqual(p.os_name, 'osx')
     self.assertEqual(p.architecture, platform.machine())