update setup files
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
be2d26bfd9
commit
962f26ae05
15
Makefile
15
Makefile
@ -17,25 +17,22 @@ all:
|
||||
@echo "To do user installation use target: install-user"
|
||||
|
||||
|
||||
clean:
|
||||
sh clean.sh
|
||||
|
||||
|
||||
install-user:
|
||||
python setup.py -v install --user
|
||||
|
||||
install-user-test:
|
||||
python setup.py -v install --user test
|
||||
pip install --user .'[test]'
|
||||
|
||||
install-user-web:
|
||||
python setup.py -v install --user web
|
||||
pip install --user .'[web]'
|
||||
|
||||
install: install-user
|
||||
|
||||
|
||||
clean:
|
||||
sh clean.sh
|
||||
|
||||
uninstall:
|
||||
pip uninstall -v -y $(BIN)
|
||||
|
||||
|
||||
distclean: uninstall
|
||||
distclean: clean
|
||||
distclean: clean uninstall
|
||||
|
2
clean.sh
2
clean.sh
@ -5,3 +5,5 @@ rm -drv build
|
||||
rm -drv dist
|
||||
find . -name "*.egg*" -exec rm -drv {} \;
|
||||
find . -name "*__pycache__*" -exec rm -drv {} \;
|
||||
|
||||
exit 0
|
||||
|
20
setup.py
20
setup.py
@ -1,18 +1,24 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
|
||||
import re
|
||||
import sys
|
||||
from distutils import log
|
||||
"""
|
||||
Python setup script
|
||||
"""
|
||||
|
||||
|
||||
try:
|
||||
from setuptools import setup, Command
|
||||
except ImportError:
|
||||
from distutils.core import setup, Command
|
||||
from glob import glob
|
||||
|
||||
import os
|
||||
from os.path import join, dirname
|
||||
import io
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
from os.path import join, dirname
|
||||
from distutils import log
|
||||
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pym'))
|
||||
@ -33,7 +39,7 @@ python_scripts = [os.path.join(cwd, path) for path in (
|
||||
)]
|
||||
|
||||
|
||||
class set_version(Command):
|
||||
class SetVersion(Command):
|
||||
"""Set python __version__ to our __version__."""
|
||||
description = "hardcode scripts' version using VERSION from environment"
|
||||
user_options = [] # [(long_name, short_name, desc),]
|
||||
@ -114,7 +120,7 @@ setup(
|
||||
# glob('man/*')),
|
||||
# ),
|
||||
cmdclass={
|
||||
'set_version': set_version,
|
||||
'set_version': SetVersion,
|
||||
},
|
||||
tests_require=tests_require,
|
||||
extras_require={
|
||||
|
Loading…
Reference in New Issue
Block a user