2013-03-14 6 views
7

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 
+0

Ah, scusa, errore mio. –

+0

Stai provando 'sudo python setup.py sdist' o semplicemente' python setup.py sdist'? –

+0

Eseguo entrambi i comandi senza sudo sotto un utente e all'interno di un virtualenv. – azurkin

risposta

0

Prova:

$ pip install --process-dependency-links file://path/package-0.0.1.tar.gz 

Si noti che questo tag viene rimosso da pip in pip 1.6. See this article on pip.pypa.io per ulteriori informazioni.

In pip 1.5 i collegamenti alle dipendenze di elaborazione sono stati deprecati e sono stati rimossi completamente in pip 1.6.

C'è anche un lengthy discussion (issue #1519) quanto riguarda pip & collegamenti di dipendenza

Se questo non dovesse funzionare, potrebbe anche essere necessario aggiungere un suffisso versione sul tuo link, in questo modo:

git+ssh://[email protected]/ged-thrift-stubs.git#egg=GEDThriftStubs-0.0.1 

dove 0.0.1 è il version specificato nel setup.py di ged-thrift-stubs