Python Getting Started With setuptools setup.py setup.cfg and OpenStack pbr

preview_player
Показать описание

1)
Install setuptools
#sudo apt-get install python-setuptools

2)
select a python project/module which we need to to install using setuptools

3)
Open python console and try import your project/module and you should get error, since project/module not installed.

4)
import setuptools

import setuptools

Examples:

5)
* Check the folders and files which are created by above command

6)
--------------------------

a)

b)

Options for 'install' command:

--user install in user site-package
'/home/saju/.local/lib/python2.7/site-
packages'

--record filename in which to record list of
installed files

c)

d)

e)

f)

g)

h)

7)
import setuptools

* What is pbr

[metadata]
name= blabla

8)
#sudo pip uninstall regservice

9)
import setuptools

Then run following command to install the module and try to import the module in python console. You can use "#sudo pip uninstall regservice" to unstall the module

10)
import setuptools

Рекомендации по теме
Комментарии
Автор

Leo Adams I know that you probably had your response by now but may be someone else will read this and find it useful :
to paste into console or vim it's: { control + shift + v }

Superrouz
Автор

when i run setup.py it generates this errors, what is the meaning of this error, please will explain this ?

UserWarning: Normalizing '0.2dev' to '0.2.dev0'
normalized_version,
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

Geek
Автор

Hello, Saju,


Thanks very much for the awesome tutorial. 

Could you please tell me how I can paste the content from clipboard to prompt and vim as you did at 0:43 and 4:12?

Peace,
Leo

LeoAdamszhang
Автор

i have problem with fb.py no module named mechanize how solve it i dont understnad your method is too long so bro explane me on some simple steps please

MuhammadAdnan-gxrd