Commit 6c053871 authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: improve installation scripts

parent eb0e3784
...@@ -15,6 +15,9 @@ ifeq ($(SO_VERSION_XYZ),) ...@@ -15,6 +15,9 @@ ifeq ($(SO_VERSION_XYZ),)
SO_VERSION_XYZ := 0 SO_VERSION_XYZ := 0
endif endif
PREFIX ?= /usr/local
DESTLIBDIR ?= $(PREFIX)/lib
WRTD_DEP_TRTL ?= ../../dependencies/mock-turtle/ WRTD_DEP_TRTL ?= ../../dependencies/mock-turtle/
MTLIB = $(WRTD_DEP_TRTL)/software/lib/libmockturtle.a MTLIB = $(WRTD_DEP_TRTL)/software/lib/libmockturtle.a
...@@ -55,6 +58,13 @@ clean: ...@@ -55,6 +58,13 @@ clean:
%.o: %.c %.o: %.c
$(CC) -c $(CFLAGS) -MMD $< -o $@ $(CC) -c $(CFLAGS) -MMD $< -o $@
install: install: $(LIBSO) $(LIBSO_XYZ)
install -d $(DESTLIBDIR)
install -m 0755 $(LIBSO_XYZ) $(DESTLIBDIR)
test -e $(DESTLIBDIR)/$(LIBSO) || ln -s $(LIBSO_XYZ) $(DESTLIBDIR)/$(LIBSO)
uninstall:
rm -f $(DESTLIBDIR)/$(LIBSO) $(DESTLIBDIR)/$(LIBSO_XYZ)
rmdir --ignore-fail-on-non-empty $(DESTLIBDIR)
-include $(wildcard *.d) -include $(wildcard *.d)
*.egg-info/
dist/
build/
*.pyc *.pyc
"""
@package docstring
@copyright: Copyright (c) 2019 CERN (home.cern)
SPDX-License-Identifier: LGPL-3.0-or-later
"""
#!/usr/bin/env python #!/usr/bin/env python
from distutils.core import setup from setuptools import setup
setup(name='PyWrtd', setup(
version='1.0', name='PyWrtd',
description='Python wrapper for WRTD', version='1.0',
author='Milosz Malczak', description='Python wrapper for WRTD',
author_email='milosz.malczak@cern.ch', author='Milosz Malczak',
maintainer="Dimitris Lampridis", author_email='milosz.malczak@cern.ch',
maintainer_email="dimitris.lampridis@cern.ch", maintainer="Dimitris Lampridis",
url='http://www.ohwr.org/projects/wrtd', maintainer_email="dimitris.lampridis@cern.ch",
packages=['PyWrtd'], url='http://www.ohwr.org/projects/wrtd',
license='LGPLv3', project_urls={
"Documentation": "https://wrtd.readthedocs.io",
"Forum" : "https://forums.ohwr.org/c/wrtd",
},
py_modules=['PyWrtd'],
license='LGPLv3',
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment