up-exe 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- up_exe-0.0.1/PKG-INFO +3 -0
- up_exe-0.0.1/setup.cfg +4 -0
- up_exe-0.0.1/setup.py +30 -0
- up_exe-0.0.1/src/up_exe.egg-info/PKG-INFO +3 -0
- up_exe-0.0.1/src/up_exe.egg-info/SOURCES.txt +6 -0
- up_exe-0.0.1/src/up_exe.egg-info/dependency_links.txt +1 -0
- up_exe-0.0.1/src/up_exe.egg-info/entry_points.txt +2 -0
- up_exe-0.0.1/src/up_exe.egg-info/top_level.txt +1 -0
up_exe-0.0.1/PKG-INFO
ADDED
up_exe-0.0.1/setup.cfg
ADDED
up_exe-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from setuptools import setup, find_packages
|
|
4
|
+
from setuptools.command.install import install
|
|
5
|
+
|
|
6
|
+
class CustomInstallCommand(install):
|
|
7
|
+
"""自訂 install 命令,將指令檔強制安裝至指定路徑"""
|
|
8
|
+
def run(self):
|
|
9
|
+
# 指定你的目標目錄
|
|
10
|
+
target_bin = os.path.expandvars(r"%USERPROFILE%\.local\bin")
|
|
11
|
+
os.makedirs(target_bin, exist_ok=True)
|
|
12
|
+
|
|
13
|
+
# 強制指定 install_scripts 的輸出路徑
|
|
14
|
+
self.install_scripts = target_bin
|
|
15
|
+
super().run()
|
|
16
|
+
|
|
17
|
+
setup(
|
|
18
|
+
name="up-exe",
|
|
19
|
+
version="0.0.1",
|
|
20
|
+
packages=find_packages(where="src"),
|
|
21
|
+
package_dir={"": "src"},
|
|
22
|
+
cmdclass={
|
|
23
|
+
'install': CustomInstallCommand,
|
|
24
|
+
},
|
|
25
|
+
entry_points={
|
|
26
|
+
"console_scripts": [
|
|
27
|
+
"up=cli:main",
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|