39 changed files with 97 additions and 43 deletions
@ -0,0 +1,13 @@ |
|||||||
|
from setuptools import setup |
||||||
|
|
||||||
|
|
||||||
|
setup(name='joinmarketbase', |
||||||
|
version='0.1', |
||||||
|
description='Joinmarket client library for Bitcoin coinjoins', |
||||||
|
url='http://github.com/AdamISZ/joinmarket-clientserver/jmbase', |
||||||
|
author='Adam Gibson', |
||||||
|
author_email='ekaggata@gmail.com', |
||||||
|
license='GPL', |
||||||
|
packages=['jmbase'], |
||||||
|
install_requires=['twisted',], |
||||||
|
zip_safe=False) |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
from setuptools import setup |
||||||
|
|
||||||
|
|
||||||
|
setup(name='joinmarketbitcoin', |
||||||
|
version='0.1', |
||||||
|
description='Joinmarket client library for Bitcoin coinjoins', |
||||||
|
url='http://github.com/AdamISZ/joinmarket-clientserver/jmbitcoin', |
||||||
|
author='Adam Gibson', |
||||||
|
author_email='ekaggata@gmail.com', |
||||||
|
license='GPL', |
||||||
|
packages=['jmbitcoin'], |
||||||
|
install_requires=['secp256k1',], |
||||||
|
zip_safe=False) |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
from setuptools import setup |
||||||
|
|
||||||
|
|
||||||
|
setup(name='joinmarketclient', |
||||||
|
version='0.1', |
||||||
|
description='Joinmarket client library for Bitcoin coinjoins', |
||||||
|
url='http://github.com/AdamISZ/joinmarket-clientserver/jmclient', |
||||||
|
author='Adam Gibson', |
||||||
|
author_email='ekaggata@gmail.com', |
||||||
|
license='GPL', |
||||||
|
packages=['jmclient'], |
||||||
|
install_requires=['joinmarketbase'], |
||||||
|
zip_safe=False) |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
from setuptools import setup |
||||||
|
|
||||||
|
|
||||||
|
setup(name='joinmarketdaemon', |
||||||
|
version='0.1', |
||||||
|
description='Joinmarket client library for Bitcoin coinjoins', |
||||||
|
url='http://github.com/AdamISZ/joinmarket-clientserver/jmdaemon', |
||||||
|
author='Adam Gibson', |
||||||
|
author_email='ekaggata@gmail.com', |
||||||
|
license='GPL', |
||||||
|
packages=['jmdaemon'], |
||||||
|
install_requires=['libnacl', 'joinmarketbase'], |
||||||
|
zip_safe=False) |
||||||
@ -1,40 +0,0 @@ |
|||||||
from setuptools import setup |
|
||||||
import sys |
|
||||||
if '--client-only' in sys.argv: |
|
||||||
sys.argv.remove('--client-only') |
|
||||||
setup(name='joinmarketclient', |
|
||||||
version='0.1', |
|
||||||
description='Joinmarket client library for Bitcoin coinjoins', |
|
||||||
url='http://github.com/Joinmarket-Org/joinmarket-client', |
|
||||||
author='Adam Gibson', |
|
||||||
author_email='ekaggata@gmail.com', |
|
||||||
license='GPL', |
|
||||||
packages=['jmbase', 'jmclient'], |
|
||||||
install_requires=['twisted',], |
|
||||||
zip_safe=False) |
|
||||||
elif '--client-bitcoin' in sys.argv: |
|
||||||
sys.argv.remove('--client-bitcoin') |
|
||||||
setup(name='joinmarketclient', |
|
||||||
version='0.1', |
|
||||||
description='Joinmarket client library for Bitcoin coinjoins', |
|
||||||
url='http://github.com/Joinmarket-Org/joinmarket-client', |
|
||||||
author='Adam Gibson', |
|
||||||
author_email='ekaggata@gmail.com', |
|
||||||
license='GPL', |
|
||||||
packages=['jmbase', 'jmbitcoin', 'jmclient'], |
|
||||||
install_requires=['twisted', 'secp256k1'], |
|
||||||
zip_safe=False) |
|
||||||
|
|
||||||
elif '--backend' in sys.argv: |
|
||||||
sys.argv.remove('--backend') |
|
||||||
setup(name='joinmarketdaemon', |
|
||||||
version='0.1', |
|
||||||
description='Joinmarket daemon for Bitcoin coinjoins', |
|
||||||
author='Adam Gibson', |
|
||||||
author_email='ekaggata@gmail.com', |
|
||||||
license='GPL', |
|
||||||
packages=['jmbase','jmdaemon'], |
|
||||||
install_requires=['libnacl', 'twisted'], |
|
||||||
zip_safe=False) |
|
||||||
else: |
|
||||||
raise Exception("Invalid arguments") |
|
||||||
@ -0,0 +1,42 @@ |
|||||||
|
#!/usr/bin/env python |
||||||
|
from __future__ import print_function |
||||||
|
import sys, os, subprocess |
||||||
|
|
||||||
|
"""A script to install in one of 3 modes: |
||||||
|
(a) daemon - installs jmbase, jmdaemon |
||||||
|
(b) client-only - installs jmbase, jmclient |
||||||
|
(c) client-bitcoin - installs jmbase, jmclient, jmbitcoin |
||||||
|
|
||||||
|
Note that b and c are distinct mainly due to the fact that |
||||||
|
the latter requires the secp256k1 (libsecp256k1 via the secp256k1-py binding), |
||||||
|
which is something that would be an annoyance if you don't need it (wallets). |
||||||
|
While only (a) has a similarly annoying dependency on libnacl as the binding |
||||||
|
to libsodium. |
||||||
|
All modes require and install twisted. |
||||||
|
""" |
||||||
|
|
||||||
|
def help(): |
||||||
|
print("Usage: python setupall.py <mode>\n" |
||||||
|
"Mode is one of:\n" |
||||||
|
"`--daemon` - for joinmarketd\n" |
||||||
|
"`--client-only` - for client not using joinmarket's own bitcoin code\n" |
||||||
|
"`--client-bitcoin` - using joinmarket bitcoin code, installs secp256k1.") |
||||||
|
sys.exit(0) |
||||||
|
|
||||||
|
if len(sys.argv) != 2: |
||||||
|
help() |
||||||
|
|
||||||
|
curdir = os.getcwd() |
||||||
|
|
||||||
|
mode = sys.argv[1] |
||||||
|
|
||||||
|
packages = {"--daemon": ["jmbase", "jmdaemon"], |
||||||
|
"--client-only": ["jmbase", "jmclient"], |
||||||
|
"--client-bitcoin": ["jmbase", "jmbitcoin", "jmclient"]} |
||||||
|
if mode not in packages: |
||||||
|
help() |
||||||
|
|
||||||
|
for x in packages[mode]: |
||||||
|
dirtorun = os.path.join(curdir, x) |
||||||
|
p = subprocess.Popen(['python', 'setup.py', 'install'], cwd=dirtorun) |
||||||
|
p.wait() |
||||||
Loading…
Reference in new issue