mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-01 10:28:23 +00:00
Minor tweaks to python setup process; update gitignore
This commit is contained in:
parent
47af3ca190
commit
ac99b5bd14
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -58,6 +58,12 @@ _*.diff
|
||||||
tmp/
|
tmp/
|
||||||
|
|
||||||
bindings/python/build/
|
bindings/python/build/
|
||||||
|
bindings/python/dist/
|
||||||
|
bindings/python/src/
|
||||||
|
bindings/python/unicorn.egg-info/
|
||||||
|
bindings/python/unicorn/lib/
|
||||||
|
bindings/python/unicorn/include/
|
||||||
|
bindings/python/MANIFEST
|
||||||
config.log
|
config.log
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,30 +1,28 @@
|
||||||
# Python binding for Unicorn engine. Nguyen Anh Quynh <aquynh@gmail.com>
|
# Python binding for Unicorn engine. Nguyen Anh Quynh <aquynh@gmail.com>
|
||||||
|
|
||||||
OBJDIR = ./build
|
.PHONY: gen_const install install3 clean sdist sdist3 bdist bdist3 sdist_win bdist_win
|
||||||
|
|
||||||
.PHONY: gen_const install install3 clean sdist sdist3 bdist bdist3
|
|
||||||
|
|
||||||
gen_const:
|
gen_const:
|
||||||
cd .. && python const_generator.py python
|
cd .. && python const_generator.py python
|
||||||
|
|
||||||
install:
|
install:
|
||||||
rm -rf $(OBJDIR) src/
|
rm -rf src/ dist/
|
||||||
rm -rf prebuilt/win64/unicorn.dll
|
rm -rf prebuilt/win64/unicorn.dll
|
||||||
rm -rf prebuilt/win32/unicorn.dll
|
rm -rf prebuilt/win32/unicorn.dll
|
||||||
if test -n "${DESTDIR}"; then \
|
if test -n "${DESTDIR}"; then \
|
||||||
python setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
|
python setup.py install --root="${DESTDIR}"; \
|
||||||
else \
|
else \
|
||||||
python setup.py build -b $(OBJDIR) install; \
|
python setup.py install; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install3:
|
install3:
|
||||||
rm -rf $(OBJDIR) src/
|
rm -rf src/ dist/
|
||||||
rm -rf prebuilt/win64/unicorn.dll
|
rm -rf prebuilt/win64/unicorn.dll
|
||||||
rm -rf prebuilt/win32/unicorn.dll
|
rm -rf prebuilt/win32/unicorn.dll
|
||||||
if test -n "${DESTDIR}"; then \
|
if test -n "${DESTDIR}"; then \
|
||||||
python3 setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
|
python3 setup.py install --root="${DESTDIR}"; \
|
||||||
else \
|
else \
|
||||||
python3 setup.py build -b $(OBJDIR) install; \
|
python3 setup.py install; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build & upload PyPi package with source code of the core
|
# build & upload PyPi package with source code of the core
|
||||||
|
@ -68,7 +66,7 @@ sdist3_win:
|
||||||
python3 setup.py sdist register upload
|
python3 setup.py sdist register upload
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OBJDIR) src/ dist/ MANIFEST
|
rm -rf src/ dist/ build/ MANIFEST
|
||||||
rm -rf prebuilt/win64/unicorn.dll
|
rm -rf prebuilt/win64/unicorn.dll
|
||||||
rm -rf prebuilt/win32/unicorn.dll
|
rm -rf prebuilt/win32/unicorn.dll
|
||||||
rm -rf unicorn/lib unicorn/include
|
rm -rf unicorn/lib unicorn/include
|
||||||
|
|
|
@ -183,12 +183,6 @@ setup(
|
||||||
],
|
],
|
||||||
requires=['ctypes'],
|
requires=['ctypes'],
|
||||||
cmdclass=cmdclass,
|
cmdclass=cmdclass,
|
||||||
libraries=[(
|
|
||||||
'unicorn', dict(
|
|
||||||
package='unicorn',
|
|
||||||
sources=dummy_src()
|
|
||||||
),
|
|
||||||
)],
|
|
||||||
zip_safe=True,
|
zip_safe=True,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={
|
package_data={
|
||||||
|
|
Loading…
Reference in a new issue