8 $(MAKE
) clean_build build
9 $(MAKE
) clean_build package
16 find osm_nbi
-name
'*.pyc' -delete
17 find osm_nbi
-name
'*.pyo' -delete
23 cp requirements.txt build
/
28 cp LICENSE build
/osm_nbi
32 # apt-get install -y python-stdeb
33 cd build
&& python3 setup.py
--command-packages
=stdeb.command sdist_dsc
# --with-python2=False
34 cd build
/deb_dist
/osm-nbi-
* && dpkg-buildpackage
-rfakeroot
-uc
-us
36 cp build
/deb_dist
/python3-
*.deb .build
/
39 echo
"Nothing to be done yet"
42 dpkg
-i .build
/python-osm-nbi
*.deb
44 OSMLIBOVIM_PATH
=`python -c 'import lib_osm_openvim; print lib_osm_openvim.__path__[0]'` || FATAL
"lib-osm-openvim was not properly installed" && \
45 OSMNBI_PATH
=`python3 -c 'import osm_nbi; print(osm_nbi.__path__[0])'` || FATAL
"osm-nbi was not properly installed" && \
46 service osm-nbi restart
49 # pip install -r requirements.txt
50 cd build
&& .
/setup.py develop