question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python setup.py develop

See original GitHub issue

Shouldn’t this work for django-extensions? python setup.py develop

It works in other projects, but when I run it with django-extensions I get the strangest error message: $ python setup.py develop 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

error: invalid command 'develop'

I’ve also looked at the contents of setup.py, and haven’t spotted anything unusual.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

31reactions
MichaelBlumecommented, Apr 1, 2011

@filipefigcorreia: You can make this work locally, if you like. In setup.py replace the line

from distutils.core import setup

with

from setuptools import setup

That’s all you need.

2reactions
MichaelBlumecommented, Apr 1, 2011

@filipefigcorreia: no problem =)

distutils is part of Python, so everyone’s assumed to have it. setuptools is an optional install (though a pretty popular one) and gives some extra options. So it’s up to each project whether to require that its users install the optional package and thus get those options.

I think a good balance might be struck by

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python setup.py develop vs install - Stack Overflow
python setup.py install is used to install (typically third party) packages that you're not going to develop/modify/debug yourself. For your own stuff, ...
Read more >
Python Project Install - develop vs install & setuptools vs pip
The difference between setup.py develop and setup.py install ... In short, you want to run setup.py develop when you are editing code because...
Read more >
Development Mode (a.k.a. “Editable Installs”) - Setuptools
This installation mode will try to emulate how python setup.py develop works (still within the context of PEP 660). ... The compat mode...
Read more >
2. Writing the Setup Script — Python 3.11.1 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >
Making a Python Package
Create the basic package structure · Write a setup.py · pip install -e . · Put some tests in package/test · pytest in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found