How to skip python dependency with node sass installation? - npm

When I install node-sass for compiling my sass files. It asks for installing python2.7 on the windows machine for node-gyp.
So, Is there any option to skip the python dependency and work without it?

Related

How to use software built from source and installed with brew in the same project?

I am trying to get my head around package managers. I recently installed llvm in macOS using
brew install llvm
I installed python3.8 using pyenv and CMake latest release from https://cmake.org/download/. Brew displayed this message after the installation:
==> Dependencies
Build: cmake ✘, python#3.8 ✘
Required: libffi ✔
I have 2 questions:
Should I be concerned that I did not install CMake nor python3.8 using brew? I would like to know before replacing my previous CMake and python3.8 installations with those offered by brew.
Is there a way to use pakages/software installed with brew and without it in the same project and not make everything a mess? If there is, how can I learn to do it?
I am a physics major so my knowledge in these topics is not as good as I would like to.
Thanks for the help!

installation of cmake on debian 8

I tried to install mcsema on my debian linux but I am stopped by error
Cmake 3.1 or higher is required. You are running 3.0.2. On debian this is the only version could be installed by apt-get install. Building CMake from sources, I get several errors as well. Does anyone know how to install the latest version of Cmake on Debian 8?
Download latests cmake release and follow the README.rst instructions:
UNIX/Mac OSX/MinGW/MSYS/Cygwin ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You need to have a compiler and a make installed. Run the
bootstrap script you find in the source directory of CMake. You
can use the --help option to see the supported options. You may
use the --prefix=<install_prefix> option to specify a custom
installation directory for CMake. You can run the bootstrap script
from within the CMake source directory or any other build directory of
your choice. Once this has finished successfully, run make and
make install. In summary::
$ ./bootstrap && make && make install

How do I install libudev with cmake

I have a binary (c++) and I want to link against the libudev library. But I want my cmake file verified if the udev library it's installed. If not, download the package and install it. But the only away to install udev library (I think) it's by using sudo apt-get install libudev-dev package or something like that.
My question is: is possible, using a cmake file, download the libudev-dev package ?

How to install Numpy without compiling the sources

I have a project running on CentOS7 that uses Numpy.
The problem is that it takes a very huge amount of time to install this dependency.
I therefore tried to yum install numpy libs before pip install it.
So I run:
yum install numpy-1.7.1
pip install numpy==1.7.1 # This pip is executed in a virtualenv
The yum install installs the packaged library, and is quite fast to be performed.
The weird thing is that the pip install command re-compile all the sources. This is strange because, from my understanding, the pip install shall only add the python bindings on the compiled lib previously installed.
Any idea to get this library installed without to have everything recompiled?
I solved it by symlinking the 'global lib' (installed by yum install) into the virtual env:
ln -s /lib64/python2.7/site-packages/numpy $VENV/lib64/python2.7/site-packages/numpy
ln -s /lib64/python2.7/site-packages/numpy-1.7.1-py2.7.egg-info $ENV/lib64/python2.7/site-packages/numpy-1.7.1-py2.7.egg-info

IntelliJ IDEA 12: How can I run pip install to install libraries in virtual environment?

I am using IntelliJ IDEA 12 Ultimate Edition and creating flask project.
I created the virtualenv using IDEA and using that, but my code has dependency on other libraires I as move forward. For example Flask-Restless.
My code in IntelliJ IDEA looks like
Is there a way to install Flak-Restless using IntelliJ IDEA 12?
or
do I need to activate my virtualenv on command-line and install it myself?
Is it something IDEA can provide to me?
In IntelliJ IDEA use Tools | Manage Python Packages dialog to install/uninstall packages for your Python SDK or virtualenv used in project.
Use pip requirements.txt in your repository root. My PyCharm automatically prompt me install absent requirements or if installed versions not equal with requirements.txt.
You can install packages from requirements.txt:
your_python_root_pip install -r requirements.txt
You can get already installed packages with versions:
your_python_root_pip freeze -r requirements.txt
For details see pip help. See requirements.txt example:
flask==0.9
flask-testing==0.4
blinker==1.2
uwsgi==1.4.5
nose
coverage
pep8
You can install all project packages via PyCharm 2017.1 by Tools / Python Integrated Tools / Package requirements file. Get there full path to your requirements.txt file and PyCharm will ask you to install all dependencies.