"Development mode"

P

py_lrnr

I am new to python and I have come across the following command and its description:
Now to be able to run the project you will need to install it and its >dependencies.
python setup.py develop

I looked up what the 'develop' argument does and found:
Extra commands:
develop install package in 'development mode'

I searched for a description of 'development mode' but could not find a good description.

Can anyone (very briefly) explain to me, in a sentence or two:

what 'development mode' is?
how 'development mode' differs from other 'modes'?
why/when I would use 'development mode'?
what 'development mode' does or does not allow me to do?

Many thanks in advance.
 
T

Tarek Ziadé

I am new to python and I have come across the following command and its description:

I looked up what the 'develop' argument does and found:

I searched for a description of 'development mode' but could not find a good description.

Can anyone (very briefly) explain to me, in a sentence or two:

what 'development mode' is?

how 'development mode' differs from other 'modes'?
why/when I would use 'development mode'?
what 'development mode' does or does not allow me to do?

Many thanks in advance.

This a setuptools / distribute feature that allows you to add a project
to your Python environment without installing it - so you can continue
its "development"

In other words, when you call "python setup.py develop", setuptools will
compile the metadata and hook your project into Python's site-package,
but the packages and modules that will be used are the one in the
directory where you've run that command.

This is useful to continue working on your code and testing it without
having to run "python setup.py install" on every run

see
http://packages.python.org/distribu...deploy-the-project-source-in-development-mode
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top