pip仅安装git repo版本

pip仅安装git repo版本,git,installation,pip,Git,Installation,Pip,我正在尝试为我的软件包构建setup.pypip安装--克隆回购协议的用户运行良好。软件包已生成并安装 如果pip安装git+ssh://git@github.com/Me/MyPackage。git@installation--执行user,pip仅构建包。它不安装。我该怎么做才能使pip也安装该软件包 这里是我的setup.py。它有一个自定义安装,可以按其应该的方式编译c代码。install.run(self)似乎未执行或执行其他操作 from setuptools import setu

我正在尝试为我的软件包构建setup.py<代码>pip安装--克隆回购协议的用户运行良好。软件包已生成并安装

如果
pip安装git+ssh://git@github.com/Me/MyPackage。git@installation--执行user
,pip仅构建包。它不安装。我该怎么做才能使pip也安装该软件包

这里是我的setup.py。它有一个自定义安装,可以按其应该的方式编译c代码。
install.run(self)
似乎未执行或执行其他操作

from setuptools import setup, Extension, find_packages
from setuptools.command.install import install
import subprocess
import os
from mypackage import __version__

def find_executables():
    folder = 'mypackage/bin'
    a =  [f'{folder}/{e}' for e in os.listdir(folder) if os.path.isfile(f'{folder}/{e}') and not '__' in e]
    return a

class CustomInstall(install):
    def run(self):
        import sys
        commandPullSubmodules = 'git submodule update --init --recursive'
        process = subprocess.Popen(commandPullSubmodules, shell=True, cwd="./")
        process.wait()

        #COMPILE C-CODE
        version = f'{sys.version_info[0]}.{sys.version_info[1]}'
        commandInstall = f'python{version} compile.py --target all'
        process = subprocess.Popen(commandInstall, shell=True, cwd="mypackage/mypackageC")
        process.wait()

        install.run(self)

setup(
    name='mypackage',
    version=__version__,
    packages=find_packages(),
    author='Me',
    author_email='me@gmail.com',
    url='https://github.com/Me/MyPackage.git',
    install_requires=['lxml', 'PyFFTW', 'scipy', 'boost', 'numpy'],
    extras_require={
        'gpu': ['cupy'],
        'gui': ['PyQt5', 'pyqtgraph'],
        'all': ['cupy', 'PyQt5', 'pyqtgraph']},
    cmdclass={'install': CustomInstall},
    include_package_data=True,
    scripts=find_executables(),
    test_suite='nose.collector',
    tests_require=['nose'])