py3port: update setup.py

This commit is contained in:
The MMGen Project 2018-10-31 18:19:20 +00:00
commit 66be913d5d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -64,11 +64,11 @@ class my_build_ext(build_ext):
def build_extension(self,ext):
build_ext.build_extension(self,ext)
ext_src = self.get_ext_fullpath(ext.name)
ext_dest = self.get_ext_filename(ext.name)
ext_dest = os.path.join('mmgen','secp256k1.so')
try: os.unlink(ext_dest)
except: pass
os.chmod(ext_src,0o755)
print('copying %s to %s' % (ext_src,ext_dest))
print('copying {} to {}'.format(ext_src,ext_dest))
copy2(ext_src,ext_dest)
class my_install_data(install_data):