Relocated from i2p/apps/sam/python
Stasher is a Kademlia-based distributed file store (aka 'DHT') for I2P. Written in python, it can be accessed as: - low level python classes, or - via a client socket, with simple text-based protocol, or - via command-line client prog (called 'stasher', unsurprisingly) Release status is pre-alpha Developed by aum, August 2004
This commit is contained in:
46
apps/stasher/python/setup.py
Normal file
46
apps/stasher/python/setup.py
Normal file
@ -0,0 +1,46 @@
|
||||
#! /usr/bin/env python
|
||||
#@+leo-ver=4
|
||||
#@+node:@file setup-stasher.py
|
||||
#@@first
|
||||
"""
|
||||
This is the installation script for Stasher, a distributed
|
||||
file storage framework for I2P.
|
||||
"""
|
||||
|
||||
import sys, os
|
||||
from distutils.core import setup
|
||||
|
||||
oldcwd = os.getcwd()
|
||||
os.chdir("src")
|
||||
|
||||
if sys.platform == 'win32':
|
||||
stasherScript = "..\\scripts\\stasher.py"
|
||||
else:
|
||||
stasherScript = "../scripts/stasher"
|
||||
|
||||
|
||||
try:
|
||||
import i2p
|
||||
import i2p.socket
|
||||
import i2p.select
|
||||
except:
|
||||
print "Sorry, but you don't seem to have the core I2P"
|
||||
print "python library modules installed."
|
||||
print "If you're installing from cvs, please go to"
|
||||
print "i2p/apps/sam/python, become root, and type:"
|
||||
print " python setup.py install"
|
||||
print "Then, retry this installation."
|
||||
sys.exit(1)
|
||||
|
||||
setup(name="Stasher",
|
||||
version="0.0",
|
||||
description="Kademlia-based P2P distributed file storage app for I2P",
|
||||
author="aum",
|
||||
author_email="aum_i2p@hotmail.com",
|
||||
url="http://stasher.i2p",
|
||||
py_modules = ['stasher', 'bencode'],
|
||||
scripts = [stasherScript],
|
||||
)
|
||||
#@nonl
|
||||
#@-node:@file setup-stasher.py
|
||||
#@-leo
|
Reference in New Issue
Block a user