ndparker / rjsmin

Fast javascript minifier for Python
http://opensource.perlig.de/rjsmin/
Apache License 2.0
60 stars 15 forks source link

option --without-c-extensions not recognized #15

Closed Hand-some closed 5 years ago

Hand-some commented 5 years ago

Hey,

I am having trouble installing rjsmin under the option "--without-c-extensions" and this is how it feeds me back

Installing collected packages: rjsmin Running setup.py install for rjsmin ... error Complete output from command c:\users\gary\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Gary\AppData\Local\Temp\pip-install-4trtsdxb\rjsmin\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Gary\AppData\Local\Temp\pip-record-lo8x_60k\install-record.txt --single-version-externally-managed --compile --without-c-extensions: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: option --without-c-extensions not recognized

However, I am able to install rcssmin module successfully under the option "--without-c-extensions".

ndparker commented 5 years ago

Yes, the option is no more. That's one of the reasons this version got a bigger bump.

ndparker commented 5 years ago

(rcssmin will change, too. Rather sooner than later)

Hand-some commented 5 years ago

Well, thanks. (It seems that I have to install Microsoft Visual C++ 14 so that I am able to install django-compressor)

ndparker commented 5 years ago

Well, no. The C extension is supposed to be automatically optional now (as stated in the change log :-) ). What happens if you just leave out the old --without-c-extensions option?

Hand-some commented 5 years ago

Oooooo thanks. I have just tried the strategy you mentioned half an hour ago and it works very well. Thanks again.

ndparker commented 5 years ago

:+1:

ronaldjdev commented 2 years ago

pip install django_compressor==1 fix the problem, of course you have to install msvc ++ 14.0