addr generation with secp256k1mod

This commit is contained in:
philemon 2016-08-22 14:20:46 +03:00
commit 5676d7a3f9
Signed by untrusted user who does not match committer: mmgen
GPG key ID: 62DBE9E5212F05BE
20 changed files with 430 additions and 431 deletions

View file

@ -16,18 +16,44 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from distutils.core import setup
from distutils.core import setup,Extension
from distutils.command.build_ext import build_ext
import os
from shutil import copy2
# install extension module in repository after building
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)
try: os.unlink(ext_dest)
except: pass
os.chmod(ext_src,0755)
print 'copying %s to %s' % (ext_src,ext_dest)
copy2(ext_src,ext_dest)
module1 = Extension(
name = 'mmgen.secp256k1',
sources = ['extmod/secp256k1mod.c'],
libraries = ['secp256k1'],
library_dirs = ['/usr/local/lib'],
runtime_library_dirs = ['/usr/local/lib'],
include_dirs = ['/usr/local/include'],
)
setup(
name = 'mmgen',
description = 'A complete Bitcoin cold-storage solution for the command line',
version = '0.8.5',
description = 'A complete Bitcoin offline/online wallet solution for the command line',
version = '0.8.6rc1',
author = 'Philemon',
author_email = 'mmgen-py@yandex.com',
url = 'https://github.com/mmgen/mmgen',
license = 'GNU GPL v3',
platforms = 'Linux, MS Windows',
platforms = 'Linux, MS Windows, Raspberry PI',
keywords = 'Bitcoin, wallet, cold storage, offline storage, open-source, command-line, Python, Bitcoin Core, bitcoind, hd, deterministic, hierarchical, secure, anonymous',
cmdclass = { 'build_ext': my_build_ext },
ext_modules = [module1],
py_modules = [
'mmgen.__init__',
'mmgen.addr',