ecco la mia setup.py:problemi con l'installazione di pacchetto da dependency_links
setup(
...
install_requires=['GEDThriftStubs'],
dependency_links=['git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs'],
...)
Poi ho Crea pacchetto:
python setup.py sdist
poi cerco di installarlo:
pip install file: //path/package-0.0.1.tar.gz
E ottenere questo nel terminale:
Downloading/unpacking GEDThriftStubs (from package==0.0.1)
Could not find any downloads that satisfy the requirement GEDThriftStubs (from package==0.0.1)
No distributions at all found for GEDThriftStubs (from package==0.0.1)
E nei messaggi pip.log come questo:
Skipping link git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs; wrong project name (not gedthriftstubs)
E non ho nessuna parte nel mio progetto che nome esatto "gedthriftstubs", se questioni.
Ma questo funziona bene:
pip install git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs
Ah, scusa, errore mio. –
Stai provando 'sudo python setup.py sdist' o semplicemente' python setup.py sdist'? –
Eseguo entrambi i comandi senza sudo sotto un utente e all'interno di un virtualenv. – azurkin