Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py develop #92

Closed
filipefigcorreia opened this issue Apr 1, 2011 · 8 comments
Closed

python setup.py develop #92

filipefigcorreia opened this issue Apr 1, 2011 · 8 comments

Comments

@filipefigcorreia
Copy link
Contributor

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.

@trbs
Copy link
Member

trbs commented Apr 1, 2011

We don't (yet) use setuptools for our setup.py file. The python standard distutils don't support the 'develop' option.

But I was thinking about if we should not start to use setuptools or distribute.

@MichaelBlume
Copy link

@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.

@filipefigcorreia
Copy link
Contributor Author

@trbs I see. I managed to miss that this command is supposed to be available on setuptools but not on distutils...

@MichaelBlume thanks. it works!

@MichaelBlume
Copy link

@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

@filipefigcorreia
Copy link
Contributor Author

Cool

@cccchelsea
Copy link

torch.utils.ffi is deprecated. Please use cpp extensions instead.

@maxuba
Copy link

maxuba commented Dec 9, 2019

torch.utils.ffi is deprecated. Please use cpp extensions instead.
hi, do you solve this issue? how can i do with it , Thank you for help

@trbs
Copy link
Member

trbs commented Dec 9, 2019

Think these comments are not related to django-extensions :-)

@django-extensions django-extensions locked as off-topic and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants